code: def __init__(
      self,
      location,
      name=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),
      config=None,
  ):
      if not os.path.exists(location):
          os.mkdir(location)
      self.writer = SummaryWriter(location, comment=name)
  
file_path: ColossalAI/examples/community/roberta/pretraining/utils/WandbLog.py
imports: import os
  import time
  import wandb
  from torch.utils.tensorboard import SummaryWriter
label_desc: Use image node_id 1 to create a new TensorboardLog object  with example: obj = TensorboardLog(location, name, config)