numpy.ma.masked_array.shape

attribute

masked_array.shape