I am trying to reproduce the following Python code in R:
ndarray[tuple(ndarray1)] = True
My entire R/reticulate code is as follows: