SciPy

numpy.ma.masked_array.sharedmask

attribute

masked_array.sharedmask

Share status of the mask (read-only).