code: def _find_cuda_home():
      """Finds the CUDA install path. It refers to the implementation of
      pytorch <https://github.com/pytorch/pytorch/blob/master/torch/utils/cpp_extension.py>.
      """
      # Guess #1
      cuda_home = os.environ.get("CUDA_HOME") or os.environ.get(
          "CUDA_PATH"
      )
      if cuda_home is None:
          # Guess #2
          try:
              which = "where" if IS_WINDOWS else "which"
              nvcc = (
                  subprocess.check_output([which, "nvcc"])
                  .decode()
                  .rstrip("\r\n")
              )
              cuda_home = os.path.dirname(os.path.dirname(nvcc))
          except Exception:
              # Guess #3
              if IS_WINDOWS:
                  cuda_homes = glob.glob(
                      "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v*.*"
                  )
                  if len(cuda_homes) == 0:
                      cuda_home = ""
                  else:
                      cuda_home = cuda_homes[0]
              else:
                  cuda_home = "/usr/local/cuda"
              if not os.path.exists(cuda_home):
                  cuda_home = None
      return cuda_home
  
file_path: PaddleSeg/paddleseg/utils/env/sys_env.py
imports: import glob
  import os
  import platform
  import subprocess
  import sys
  import cv2
  import paddle
  import paddleseg
label_desc: Use image node_id 1 for calling a global function with example usage: _find_cuda_home() and returns: cuda_home