class_docstr: Manager that fetches system related info
class_docstr_tok: ["Manager","that","fetches","system","related","info"]
code: def _get_gpu_count_cuda():
      # FIXME: Sometimes doesn't detect GPU on Windows
      # FIXME: Doesn't ensure the GPUs are actually usable by the model (PyTorch, etc.)
      from .nvutil import cudaDeviceGetCount, cudaInit, cudaShutdown
  
      if not cudaInit():
          return 0
      gpu_count = cudaDeviceGetCount()
      cudaShutdown()
      return gpu_count
  
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 13 for calling the ResourceManager obj's underlying member method code with example usage: obj._get_gpu_count_cuda() and returns: gpu_count, int