Numpy Check If Array Is One Dimensional Vs Multidimensional Models