code: def _check_return(ret):
      if ret != NVML_SUCCESS:
          raise NVMLError(ret)
      return ret
  
imports: import os
  import sys
  import ctypes
  import threading
label_desc: Use image node_id 2 for calling a global function with example usage: _check_return(ret) and returns: ret