class_docstr: Manager that fetches ray cluster resources info. This class should only be used within a ray cluster.
class_docstr_tok: ["Manager","that","fetches","ray","cluster","resources","info",".","This","class","should","only","be","used","within","a","ray","cluster","."]
docstr: Get number of gpus available in the cluster
docstr_tok: ["Get","number","of","gpus","available","in","the","cluster"]
code: def get_gpu_count() -> int:
      """Get number of gpus available in the cluster"""
      return int(RayResourceManager._get_cluster_resources("GPU"))
  
imports: import logging
  import multiprocessing
  import os
  import shutil
  import subprocess
  from typing import Union
  from autogluon.common.utils.try_import import try_import_ray
  from .distribute_utils import DistributedContext
  from .lite import disable_if_lite_mode
  from .utils import bytes_to_mega_bytes
label_desc: Use image node_id 4 for calling the RayResourceManager obj's underlying member method code with example usage: obj.get_gpu_count() and returns: int