code: def test_close(self):
      filename = mkstemp()[1]
      self.run_test(
          """
              def file_close(filename):
                  f = open(filename,'w')
                  f.close()
                  try:
                      f.write("q")
                  except:
                      pass""",
          filename,
          file_close=[str],
      )
  
imports: from tempfile import mkstemp
  from pythran.tests import TestEnv
  import unittest
  from pythran.typing import List
label_desc: Use image node_id 10 for calling the TestFile obj's underlying member method code with example usage: obj.test_close() without return types