code: def get_number_gpus():
      """Get the number of GPUs in the system.
      Returns:
          int: Number of GPUs.
      """
      try:
          import torch
  
          return torch.cuda.device_count()
      except (ImportError, ModuleNotFoundError):
          pass
      try:
          import numba
  
          return len(numba.cuda.gpus)
      except Exception:  # numba.cuda.cudadrv.error.CudaSupportError:
          return 0
  
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 1 for calling a global function with example usage: get_number_gpus() and returns: torch, len, int