code: def subs(cmd):
      """
      get data from commands that we need to run outside of python
      """
      try:
          stdout = subprocess.check_output(cmd)
          return stdout.decode("utf-8", "replace").strip()
      except (OSError, subprocess.CalledProcessError):
          return None
  
imports: import os
  import platform
  import subprocess
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: subs(cmd) and returns: stdout, None