code: def rocm_get_gpu_use(device: int) -> float:
      percent = c_uint32()
      ret = rocmsmi.rsmi_dev_busy_percent_get(device, byref(percent))
      if rocm_ret_ok(ret):
          return float(percent.value)
      return 0.0
  
file_path: pytorch/tools/stats/monitor.py
imports: import datetime
  import json
  import signal
  import sys
  import time
  from typing import Any, Dict, List
  import psutil
  import pynvml
label_desc: Use image node_id 7 for calling a global function with example usage: rocm_get_gpu_use(device) and returns: int, float