code: def find_cuda():
      if "CUDAHOME" in os.environ:
          home = os.environ["CUDAHOME"]
          nvcc = os.path.join(home, "bin", "nvcc")
      else:
          nvcc = None
          for dir in os.environ["PATH"].split(os.pathsep):
              binpath = os.path.join(dir, "nvcc")
              if os.path.exists(binpath):
                  nvcc = os.path.abspath(binpath)
          if nvcc is None:
              raise EnvironmentError(
                  "The nvcc binary could not be located in "
                  "your $PATH. Either add it to your path, or"
                  "set $CUDAHOME"
              )
          home = os.path.dirname(os.path.dirname(nvcc))
      cudaconfig = {
          "home": home,
          "nvcc": nvcc,
          "include": os.path.join(home, "include"),
      }
      for k, v in cudaconfig.items():
          if not os.path.exists(v):
              raise EnvironmentError(
                  "The CUDA %s path could not be located in "
                  "%s" % (k, v)
              )
      libdir = os.path.join(home, "lib")
      arch = int(platform.architecture()[0][0:2])
      if sys.platform.startswith("win"):
          os.path.join(libdir, "x" + str(arch))
      if os.path.exists(os.path.join(home, libdir + "64")):
          cudaconfig["lib"] = libdir + "64"
      elif os.path.exists(os.path.join(home, libdir)):
          cudaconfig["lib"] = libdir
      else:
          raise EnvironmentError(
              "The CUDA libraries could not be located"
          )
      return cudaconfig
  
file_path: somoclu/src/Python/setup.py
imports: from setuptools import setup, Extension
  from setuptools.command.build_ext import build_ext
  import numpy
  import os
  import sys
  import platform
  import traceback
label_desc: Use image node_id 1 for calling a global function with example usage: find_cuda() and returns: cudaconfig