code: def _get_gpu_info():
      try:
          with subprocess.Popen(
              ["nvidia-smi", "-q", "-x"],
              stdout=subprocess.PIPE,
              stderr=subprocess.STDOUT,
          ) as smi_proc:
              smi_output, _ = smi_proc.communicate()
              xmlroot = ET.fromstring(sixdecode(smi_output))
              return xmlroot.findall("gpu")
      except Exception:
          return []
  
file_path: studio/studio/util/gpu_util.py
imports: import os
  import subprocess
  import xml.etree.ElementTree
  from studio.util.util import sixdecode
label_desc: Use image node_id 3 for calling a global function with example usage: _get_gpu_info() and returns: xmlroot, list