I would like to index an array of dimension N using an array of size (N,). For example, let us consider a case where N is 2.
import numpy as np foo = np.arang