code: def _read_cmd_output(commandstring, capture_stderr=False):
      """Output from successful command execution or None"""
      # Similar to os.popen(commandstring, "r").read(),
      # but without actually using os.popen because that
      # function is not usable during python bootstrap.
      import os
      import contextlib
  
      fp = open("/tmp/_aix_support.%s" % (os.getpid(),), "w+b")
  
      with contextlib.closing(fp) as fp:
          if capture_stderr:
              cmd = "%s >'%s' 2>&1" % (commandstring, fp.name)
          else:
              cmd = "%s 2>/dev/null >'%s'" % (commandstring, fp.name)
          return fp.read() if not os.system(cmd) else None
  
file_path: cpython/Lib/_aix_support.py
imports: import sys
  import sysconfig
label_desc: Use image node_id 1 for calling a global function with example usage: _read_cmd_output(commandstring, capture_stderr) and returns: unknown