code: def RunAndReturnOutput(extra_env, args):
      """Runs the test program and returns its output."""
  
      environ_copy = os.environ.copy()
      environ_copy.update(extra_env)
  
      return gtest_test_utils.Subprocess(
          [COMMAND] + args, env=environ_copy
      ).output
  
imports: import os
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 6 for calling a global function with example usage: RunAndReturnOutput(extra_env, args) and returns: gtest_test_utils