code: def GetShellCommandOutput(cmd):
      """Runs a command in a sub-process, and returns its STDOUT in a string."""
  
      return gmock_test_utils.Subprocess(
          cmd, capture_stderr=False
      ).output
  
file_path: open-asset-importer/contrib/googletest/googlemock/test/gmock_output_test.py
imports: from io import open
  import os
  import re
  import sys
  from googlemock.test import gmock_test_utils
label_desc: Use image node_id 9 for calling a global function with example usage: GetShellCommandOutput(cmd) and returns: gmock_test_utils