code: def _get_nvml_function(name):
      """Get NVML function from the NVML library"""
      global nvml_lib
  
      if name in _nvml_function_cache:
          return _nvml_function_cache[name]
  
      lib_load_lock.acquire()
      try:
          if nvml_lib is None:
              raise NVMLError(NVML_ERROR_UNINITIALIZED)
          _nvml_function_cache[name] = getattr(nvml_lib, name)
          return _nvml_function_cache[name]
      except AttributeError:
          raise NVMLError(NVML_ERROR_FUNCTION_NOT_FOUND)
      finally:
          lib_load_lock.release()
  
imports: import os
  import sys
  import ctypes
  import threading
label_desc: Use image node_id 1 for calling a global function with example usage: _get_nvml_function(name) and returns: _nvml_function_cache, _nvml_function_cache