code: def capture(command):
      proc = subprocess.Popen(
          command,
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
      )
      out, err = proc.communicate()
      return out, err, proc.returncode
  
imports: from pathlib import Path
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: capture(command) and returns: out,  err,  proc