code: def get_cuda_root():
      # We look for the cuda path since we need headers from there
      v = os.getenv("CUDA_ROOT", "")
      if v:
          return v
      v = os.getenv("CUDA_PATH", "")
      if v:
          return v
      s = os.getenv("PATH")
      if not s:
          return ""
      for dir in s.split(os.path.pathsep):
          if os.path.exists(os.path.join(dir, "nvcc")):
              return os.path.dirname(os.path.abspath(dir))
      return ""
  
imports: import errno
  import logging
  import os
  import platform
  import re
  import socket
  import sys
  import textwrap
  import numpy
  from setuptools._distutils.spawn import find_executable
  import pytensor
  from pytensor.configparser import BoolParam, ConfigParam, DeviceParam, EnumStr, FloatParam, IntParam, StrParam, _create_default_config
  from pytensor.utils import LOCAL_BITWIDTH, PYTHON_INT_BITWIDTH, call_subprocess_Popen, maybe_add_to_os_environ_pathlist, output_subprocess_Popen
label_desc: Use image node_id 1 for calling a global function with example usage: get_cuda_root() and returns: str, v, v, str, os