code: def run(command):
      """Returns (return-code, stdout, stderr)"""
      p = subprocess.Popen(
          command,
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
          shell=True,
      )
      output, err = p.communicate()
      rc = p.returncode
      enc = locale.getpreferredencoding()
      output = output.decode(enc)
      err = err.decode(enc)
      if output.startswith("├── "):
          return rc, output.strip().replace("├── ", ""), err.strip()
      return rc, output.strip(), err.strip()
  
imports: import locale
  import os
  import re
  import subprocess
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: run(command) and returns: rc,  output,  err, rc,  output,  err