code: def test_fromtextfile(self):
      # Tests reading from a text file.
      fcontent = """#
  'One (S)','Two (I)','Three (F)','Four (M)','Five (-)','Six (C)'
  'strings',1,1.0,'mixed column',,1
  'with embedded "double quotes"',2,2.0,1.0,,1
  'strings',3,3.0E5,3,,1
  'strings',4,-1e-10,,,1
  """
      with temppath() as path:
          with open(path, "w") as f:
              f.write(fcontent)
          mrectxt = fromtextfile(
              path, delimiter=",", varnames="ABCDEFG"
          )
      assert_(isinstance(mrectxt, MaskedRecords))
      assert_equal(mrectxt.F, [1, 1, 1, 1])
      assert_equal(mrectxt.E._mask, [1, 1, 1, 1])
      assert_equal(mrectxt.C, [1, 2, 3.0e5, -1e-10])
  
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 TestMRecordsImport obj's underlying member method code with example usage: obj.test_fromtextfile() without return types