code: def run_code(self, code):
      code = textwrap.dedent(code).strip()
      with open(os_helper.TESTFN, "w", encoding="utf-8") as fd:
          self.addCleanup(os_helper.unlink, os_helper.TESTFN)
          fd.write(code)
      status, stdout, stderr = assert_python_ok(os_helper.TESTFN)
      self.assertEqual(stderr, b"")
      self.assertEqual(status, 0)
      result = stdout.decode("utf-8")
      if support.verbose:
          print("\n\n--- code ---")
          print(code)
          print("\n--- stdout ---")
          print(result)
          print()
      return result
  
file_path: cpython/Lib/test/test_lltrace.py
imports: import dis
  import textwrap
  import unittest
  from test import support
  from test.support import os_helper
  from test.support.script_helper import assert_python_ok
label_desc: Use image node_id 1 for calling the TestLLTrace obj's underlying member method code with example usage: obj.run_code(code) and returns: result