code: def cudaDeviceGetCount():
      c_count = c_uint()
      fn = _cudaGetFunctionPointer("nvmlDeviceGetCount_v2")
      ret = fn(byref(c_count))
      _cudaCheckReturn(ret)
      return c_count.value
  
file_path: autogluon/common/src/autogluon/common/utils/nvutil.py
imports: import os
  import sys
  import threading
  from ctypes import *
label_desc: Use image node_id 2 for calling a global function with example usage: cudaDeviceGetCount() and returns: c_count