code: def _load_nvml_library():
      """Load the NVML Shared Library"""
      global nvml_lib
  
      lib_load_lock.acquire()
      try:
          # check if the library is loaded
          if nvml_lib is not None:
              return
  
          if sys.platform[:3] == "win":
              try:
                  # The file nvml.dll maybe in the `C:/Windows/System32` or
                  # the`C:/Program Files/NVIDIA Corporation/NVSMI`.
                  nvml_lib = ctypes.CDLL(
                      os.path.join(
                          os.getenv("WINDIR", "C:/Windows"),
                          "System32/nvml.dll",
                      )
                  )
              except OSError:
                  nvml_lib = ctypes.CDLL(
                      os.path.join(
                          os.getenv("ProgramFiles", "C:/Program Files"),
                          "NVIDIA Corporation/NVSMI/nvml.dll",
                      )
                  )
          else:
              nvml_lib = ctypes.CDLL("libnvidia-ml.so.1")
  
          if nvml_lib is None:
              _check_return(NVML_ERROR_LIBRARY_NOT_FOUND)
  
      except OSError:
          _check_return(NVML_ERROR_LIBRARY_NOT_FOUND)
      finally:
          lib_load_lock.release()
  
imports: import os
  import sys
  import ctypes
  import threading
label_desc: Use image node_id 3 for calling a global function with example usage: _load_nvml_library() without return types