NumPy

numpy.ma.MaskType.shape

attribute

MaskType.shape

tuple of array dimensions