code: def get_num_gpus():
      """Returns the number of compute-capable GPUs."""
      return cupy.cuda.runtime.getDeviceCount()
  
file_path: ray/python/ray/util/collective/collective_group/nccl_util.py
imports: import numpy
  from ray.util.collective.types import ReduceOp, torch_available
label_desc: Use image node_id 1 for calling a global function with example usage: get_num_gpus() and returns: cupy