code: def __init__(self, ds_config):
      self.tensorboard_enabled = "tensorboard" in ds_config
      self.wandb_enabled = "wandb" in ds_config
      self.csv_monitor_enabled = "csv_monitor" in ds_config
  
      if self.tensorboard_enabled:
          self.tensorboard_config = TensorBoardConfig(
              **ds_config["tensorboard"]
          )
      if self.wandb_enabled:
          self.wandb_config = WandbConfig(**ds_config["wandb"])
      if self.csv_monitor_enabled:
          self.csv_monitor_config = CSVConfig(
              **ds_config["csv_monitor"]
          )
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/deepspeed/monitor/config.py
imports: from pydantic import BaseModel
  from .constants import *
label_desc: Use image node_id 1 to create a new DeepSpeedMonitorConfig object  with example: obj = DeepSpeedMonitorConfig(ds_config)