class_docstr: Attributes
  ----------
  _data : recarray
      Underlying data, as a record array.
  _mask : boolean array
      Mask of the records. A record is masked when all its fields are
      masked.
  _fieldmask : boolean recarray
      Record array of booleans, setting the mask of each individual field
      of each record.
  _fill_value : record
      Filling values for each field.
class_docstr_tok: ["Attributes","--","--","--","--","--","_data",":","recarray","Underlying","data",",","as","a","record","array",".","_mask",":","boolean","array","Mask","of","the","records",".","A","record","is","masked","when","all","its","fields","are","masked",".","_fieldmask",":","boolean","recarray","Record","array","of","booleans",",","setting","the","mask","of","each","individual","field","of","each","record",".","_fill_value",":","record","Filling","values","for","each","field","."]
docstr: Restore the internal state of the masked array.
  
  This is for pickling.  ``state`` is typically the output of the
  ``__getstate__`` output, and is a 5-tuple:
  
  - class name
  - a tuple giving the shape of the data
  - a typecode for the data
  - a binary string for the data
  - a binary string for the mask.
docstr_tok: ["Restore","the","internal","state","of","the","masked","array",".","This","is","for","pickling",".","``","state","``","is","typically","the","output","of","the","``","__getstate__","``","output",",","and","is","a","5-tuple",":","-","class","name","-","a","tuple","giving","the","shape","of","the","data","-","a","typecode","for","the","data","-","a","binary","string","for","the","data","-","a","binary","string","for","the","mask","."]
code: def __setstate__(self, state):
      """
      Restore the internal state of the masked array.
  
      This is for pickling.  ``state`` is typically the output of the
      ``__getstate__`` output, and is a 5-tuple:
  
      - class name
      - a tuple giving the shape of the data
      - a typecode for the data
      - a binary string for the data
      - a binary string for the mask.
  
      """
      (ver, shp, typ, isf, raw, msk, flv) = state
      ndarray.__setstate__(self, (shp, typ, isf, raw))
      mdtype = dtype([(k, bool_) for (k, _) in self.dtype.descr])
      self.__dict__["_mask"].__setstate__((shp, mdtype, isf, msk))
      self.fill_value = flv
  
imports: from numpy.ma import MAError, MaskedArray, masked, nomask, masked_array, getdata, getmaskarray, filled
  import numpy.ma
  import warnings
  import numpy
  from numpy import bool_, dtype, ndarray, recarray, array
  from numpy.core.records import fromarrays, fromrecords
label_desc: Use image node_id 18 for calling the MaskedRecords obj's underlying member method code with example usage: obj.__setstate__(state) without return types