code: def __init__(self, monitor_config):
      super().__init__(monitor_config)
      self.tb_monitor = None
      self.wandb_monitor = None
      self.csv_monitor = None
      self.enabled = monitor_config.enabled
  
      if dist.get_rank() == 0:
          if monitor_config.tensorboard.enabled:
              self.tb_monitor = TensorBoardMonitor(
                  monitor_config.tensorboard
              )
          if monitor_config.wandb.enabled:
              self.wandb_monitor = WandbMonitor(monitor_config.wandb)
          if monitor_config.csv_monitor.enabled:
              self.csv_monitor = csvMonitor(monitor_config.csv_monitor)
  
file_path: DeepSpeed/deepspeed/monitor/monitor.py
imports: from abc import ABC, abstractmethod
  import deepspeed.comm
  from .wandb import WandbMonitor
  from .tensorboard import TensorBoardMonitor
  from .csv_monitor import csvMonitor
label_desc: Use image node_id 1 to create a new MonitorMaster object from inherited base classes: Monitor with example: obj = MonitorMaster(monitor_config)