code: def get_command_output(command, path=None, strip=True):
      """
      Run a command and return its output
      :raises CalledProcessError: when command execution fails
      :raises UnicodeDecodeError: when output decoding fails
      """
      with open(os.devnull, "wb") as devnull:
          result = check_output(
              command, cwd=path, stderr=devnull
          ).decode()
          return result.strip() if strip else result
  
imports: import os
  from subprocess import check_output
  from furl import furl
label_desc: Use image node_id 1 for calling a global function with example usage: get_command_output(command, path, strip) and returns: unknown