How to slice numpy array across multiple dimensions by passing a list?
see comment of hpaulj: Use a tuple, not a list
Lets say we have a numpy array A with shape (m_1,m_2,...,m_n) where n can be variable. Given a list of  n integers [i_1,...,i_n] I want to slice A as follows: A[i_1][i_2]...[i_n]
What is the  easiest way to do this?