code: def make_nrc(self, test_data):
      test_data = textwrap.dedent(test_data)
      mode = "w"
      if sys.platform != "cygwin":
          mode += "t"
      with open(temp_filename, mode, encoding="utf-8") as fp:
          fp.write(test_data)
      try:
          nrc = netrc.netrc(temp_filename)
      finally:
          os.unlink(temp_filename)
      return nrc
  
imports: import netrc, os, unittest, sys, textwrap
  from test.support import os_helper
label_desc: Use image node_id 1 for calling the NetrcTestCase obj's underlying member method code with example usage: obj.make_nrc(test_data) and returns: nrc