code: def GetTestsForAllIterations(extra_env, args):
      """Runs the test program and returns a list of test lists.
  
      Args:
        extra_env: a map from environment variables to their values
        args: command line flags to pass to googletest-shuffle-test_
  
      Returns:
        A list where the i-th element is the list of tests run in the i-th
        test iteration.
      """
  
      test_iterations = []
      for line in RunAndReturnOutput(extra_env, args).split("\n"):
          if line.startswith("----"):
              tests = []
              test_iterations.append(tests)
          elif line.strip():
              tests.append(line.strip())  # 'TestCaseName.TestName'
  
      return test_iterations
  
imports: import os
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 7 for calling a global function with example usage: GetTestsForAllIterations(extra_env, args) and returns: test_iterations