code: def run_test(self, grammar_source, test_source):
      self.build_extension(grammar_source)
      test_source = textwrap.indent(
          textwrap.dedent(test_source), 8 * " "
      )
      assert_python_ok(
          "-c",
          TEST_TEMPLATE.format(
              extension_path=self.tmp_path, test_source=test_source
          ),
      )
  
imports: import contextlib
  import subprocess
  import sysconfig
  import textwrap
  import unittest
  import os
  import shutil
  import tempfile
  from pathlib import Path
  from test import test_tools
  from test import support
  from test.support import os_helper, import_helper
  from test.support.script_helper import assert_python_ok
label_desc: Use image node_id 5 for calling the TestCParser obj's underlying member method code with example usage: obj.run_test(grammar_source, test_source) without return types