code: def put(self, value, blc=(), trc=(), inc=()):
          
          if isinstance(value, nma.MaskedArray):
              self.putdata(value.data, blc, trc, inc)
              self.putmask(nma.getmaskarray(value), blc, trc, inc)
          else:
              self.putdata(value, blc, trc, inc)
docs: Put image data and mask.
  
          Put the image data and optionally the mask (see ::func:`getdata`
          and :func:`getmask`).
          If the `value` argument is a numpy masked array, but data and mask will
          bw written. If it is a normal numpy array, only the data will be
          written.