code: def RunAndExtractTestList(args=None):
      """Runs the test program and returns its exit code and a list of tests run."""
  
      p = gtest_test_utils.Subprocess(
          [COMMAND] + (args or []), env=environ
      )
      tests_run = []
      test_case = ""
      test = ""
      for line in p.output.split("\n"):
          match = TEST_CASE_REGEX.match(line)
          if match is not None:
              test_case = match.group(1)
          else:
              match = TEST_REGEX.match(line)
              if match is not None:
                  test = match.group(1)
                  tests_run.append(test_case + "." + test)
      return (tests_run, p.exit_code)
  
imports: import os
  import re
  import sys
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 3 for calling a global function with example usage: RunAndExtractTestList(args) and returns: tests_run,  p