[Numpy-discussion] Create a method to index N-dim tensors using 1D index