SciPy

numpy.ma.MaskType.shape

attribute

MaskType.shape

tuple of array dimensions