code: def get_cuda_version():
      """Get CUDA version
  
      Returns:
          str: Version of the library.
      """
      try:
          import torch
  
          return torch.version.cuda
      except (ImportError, ModuleNotFoundError):
          path = ""
          if sys.platform == "win32":
              candidate = "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v*\\version.txt"
              path_list = glob.glob(candidate)
              if path_list:
                  path = path_list[0]
          elif sys.platform == "linux" or sys.platform == "darwin":
              path = "/usr/local/cuda/version.txt"
          else:
              raise ValueError("Not in Windows, Linux or Mac")
  
          if os.path.isfile(path):
              with open(path, "r") as f:
                  data = f.read().replace("\n", "")
              return data
          else:
              return None
  
file_path: recommenders/recommenders/utils/gpu_utils.py
imports: import sys
  import os
  import glob
  import logging
  from numba import cuda
  from numba.cuda.cudadrv.error import CudaSupportError
label_desc: Use image node_id 4 for calling a global function with example usage: get_cuda_version() and returns: torch, data, None