code: def check_output_despite_error(args):
      """Get output of args from command line, even if there are errors.
  
      Args:
        args: a list of command line args.
  
      Returns:
        output as string.
      """
      try:
          output = subprocess.check_output(
              args, shell=True, stderr=subprocess.STDOUT
          )
      except subprocess.CalledProcessError as e:
          output = e.output
      return output.strip()
  
imports: import os
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: check_output_despite_error(args) and returns: output