code: def test_write(self):
      self.filename = mkstemp()[1]
      content = """q2\naze23\n"""
      self.run_test(
          """def _write(filename):\n f=open(filename,'a+')\n n = f.write("""
          + str('str("""q2\naze23\n""")')
          + """)\n f.close()\n return n""",
          self.filename,
          _write=[str],
      )
  
      with open(self.filename) as fd:
          self.assertEqual(fd.read(), content * 2)
  
imports: from tempfile import mkstemp
  from pythran.tests import TestEnv
  import unittest
  from pythran.typing import List
label_desc: Use image node_id 8 for calling the TestFile obj's underlying member method code with example usage: obj.test_write() without return types