code: def run_cmd(cmd):
      print(cmd)
      if isinstance(cmd, list):
          return subprocess.check_output(cmd).decode("utf-8")
      else:
          return subprocess.check_output(cmd.split(" ")).decode("utf-8")
  
imports: import json
  import os
  import re
  import subprocess
  import sys
  import traceback
  from urllib.request import urlopen
  from urllib.request import Request
  from urllib.error import HTTPError
label_desc: Use image node_id 3 for calling a global function with example usage: run_cmd(cmd) and returns: subprocess, subprocess