create an array where each element stores its indices,"np.moveaxis(np.indices((4, 5)), 0, -1)"