code: def test_set_mask_fromarray(self):
      base = self.base.copy()
      mbase = base.view(mrecarray)
      # Sets the mask w/ an array
      mbase.mask = [1, 0, 0, 0, 1]
      assert_equal(mbase.a.mask, [1, 0, 0, 0, 1])
      assert_equal(mbase.b.mask, [1, 0, 0, 0, 1])
      assert_equal(mbase.c.mask, [1, 0, 0, 0, 1])
      # Yay, once more !
      mbase.mask = [0, 0, 0, 0, 1]
      assert_equal(mbase.a.mask, [0, 0, 0, 0, 1])
      assert_equal(mbase.b.mask, [0, 0, 0, 0, 1])
      assert_equal(mbase.c.mask, [0, 0, 0, 0, 1])
  
imports: import pickle
  import numpy
  import numpy.ma
  from numpy.ma import masked, nomask
  from numpy.testing import temppath
  from numpy._core.records import recarray, fromrecords, fromarrays
  from numpy.ma.mrecords import MaskedRecords, mrecarray, fromarrays, fromtextfile, fromrecords, addfield
  from numpy.ma.testutils import assert_, assert_equal, assert_equal_records
label_desc: Use image node_id 6 for calling the TestMRecords obj's underlying member method code with example usage: obj.test_set_mask_fromarray() without return types