code: def _add_cuda_libdir_to_dll_path():
      from os.path import join, dirname
  
      cuda_path = os.environ.get("CUDA_PATH")
  
      if cuda_path is not None:
          os.add_dll_directory(join(cuda_path, "bin"))
          return
  
      nvcc_path = _search_on_path(["nvcc.exe"])
      if nvcc_path is not None:
          os.add_dll_directory(dirname(nvcc_path))
          return
  
      from warnings import warn
  
      warn(
          "Unable to discover CUDA installation directory "
          "while attempting to add it to Python's DLL path. "
          "Either set the 'CUDA_PATH' environment variable "
          "or ensure that 'nvcc.exe' is on the path."
      )
  
imports: import os
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _add_cuda_libdir_to_dll_path() without return types