docs: def _run_cmd_get_output(cmd):
      """Runs a shell command, returns console output.
  
      Mimics python3's subprocess.getoutput
      """
      process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE)
      out, err = process.communicate()
      return out or err