code: def _find_my_gpus(prop="minor_number"):
      gpu_info = _get_gpu_info()
      my_gpus = [
          g.find(prop).text
          for g in gpu_info
          if os.getpid()
          in [
              int(p.find("pid").text)
              for p in g.find("processes").findall("process_info")
          ]
      ]
  
      return my_gpus
  
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 6 for calling a global function with example usage: _find_my_gpus(prop) and returns: my_gpus