class_docstr: Manager that fetches system related info
class_docstr_tok: ["Manager","that","fetches","system","related","info"]
code: def get_gpu_count() -> int:
      num_gpus = ResourceManager._get_gpu_count_cuda()
      if num_gpus == 0:
          num_gpus = ResourceManager.get_gpu_count_torch()
      return num_gpus
  
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 3 for calling the ResourceManager obj's underlying member method code with example usage: obj.get_gpu_count() and returns: num_gpus