code: def run_tests(args, tests, huntrleaks=None):
      tmp = tempfile.mktemp()
      try:
          write_tests(tmp, tests)
  
          cmd = python_cmd()
          cmd.extend(["-m", "test", "--matchfile", tmp])
          cmd.extend(args.test_args)
          print("+ %s" % format_shell_args(cmd))
          proc = subprocess.run(cmd)
          return proc.returncode
      finally:
          if os.path.exists(tmp):
              os.unlink(tmp)
  
file_path: cpython/Lib/test/bisect_cmd.py
imports: import argparse
  import datetime
  import os.path
  import math
  import random
  import subprocess
  import sys
  import tempfile
  import time
label_desc: Use image node_id 6 for calling a global function with example usage: run_tests(args, tests, huntrleaks) and returns: proc