code: def __init__(self, monitor_config):
      super().__init__(monitor_config)
      check_tb_availability()
  
      self.summary_writer = None
      self.enabled = monitor_config.tensorboard_config.enabled
      self.output_path = monitor_config.tensorboard_config.output_path
      self.job_name = monitor_config.tensorboard_config.job_name
  
      if self.enabled and dist.get_rank() == 0:
          self.get_summary_writer()
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/monitor/tensorboard.py
imports: from .utils import check_tb_availability
  from .monitor import Monitor
  import os
  import deepspeed.comm
label_desc: Use image node_id 1 to create a new TensorBoardMonitor object from inherited base classes: Monitor with example: obj = TensorBoardMonitor(monitor_config)