code: def test_remove_visual_c_ref(self):
      from distutils.msvc9compiler import MSVCCompiler
  
      tempdir = self.mkdtemp()
      manifest = os.path.join(tempdir, "manifest")
      f = open(manifest, "w")
      try:
          f.write(_MANIFEST_WITH_MULTIPLE_REFERENCES)
      finally:
          f.close()
  
      compiler = MSVCCompiler()
      compiler._remove_visual_c_ref(manifest)
  
      # see what we got
      f = open(manifest)
      try:
          # removing trailing spaces
          content = "\n".join([line.rstrip() for line in f.readlines()])
      finally:
          f.close()
  
      # makes sure the manifest was properly cleaned
      self.assertEqual(content, _CLEANED_MANIFEST)
  
file_path: catboost/contrib/tools/python/src/Lib/distutils/tests/test_msvc9compiler.py
imports: import sys
  import unittest
  import os
  from distutils.errors import DistutilsPlatformError
  from distutils.tests import support
  from test.test_support import run_unittest
label_desc: Use image node_id 3 for calling the msvc9compilerTestCase obj's underlying member method code with example usage: obj.test_remove_visual_c_ref() without return types