code: def test_view_flexible_type(self):
      (mrec, a, b, arr) = self.data
      alttype = [("A", float), ("B", float)]
      test = mrec.view(alttype)
      assert_(isinstance(test, MaskedRecords))
      assert_equal_records(test, arr.view(alttype))
      assert_(test["B"][3] is masked)
      assert_equal(test.dtype, np.dtype(alttype))
      assert_(test._fill_value is None)
  
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 4 for calling the TestView obj's underlying member method code with example usage: obj.test_view_flexible_type() without return types