code: def maskIndex(self):
          
          if isinstance(self.mask, bool):
              return np.full(self.data.shape, self.mask, dtype=np.bool)
          else:
              return self.mask
docs: Returns a boolean index with True if the value is masked.
  
              Always has the same shape as the maksedArray.data, event if the mask is a single boolan.