code: def _cudaCheckReturn(ret):
      if ret != NVML_SUCCESS:
          raise NVMLError(ret)
      return ret
  
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 6 for calling a global function with example usage: _cudaCheckReturn(ret) and returns: ret