code: def get_resource_manager():
      """Get resource manager class based on the training context"""
      return (
          RayResourceManager
          if DistributedContext.is_distributed_mode()
          else ResourceManager
      )
  
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 1 for calling a global function with example usage: get_resource_manager() and returns: unknown