class_docstr: Helper class to log information to Tensorboard.
class_docstr_tok: ["Helper","class","to","log","information","to","Tensorboard","."]
docstr: Add multiple scalars to Tensorboard logs.
  Args:
      data_dict (dict): key is a string specifying the tag of value.
      global_step (Optinal[int]): Global step value to record.
docstr_tok: ["Add","multiple","scalars","to","Tensorboard","logs",".","Args",":","data_dict","(","dict",")",":","key","is","a","string","specifying","the","tag","of","value",".","global_step","(","Optinal","[","int","]",")",":","Global","step","value","to","record","."]
code: def add_scalars(self, data_dict, global_step=None):
      """
      Add multiple scalars to Tensorboard logs.
      Args:
          data_dict (dict): key is a string specifying the tag of value.
          global_step (Optinal[int]): Global step value to record.
      """
      if self.writer is not None:
          for key, item in data_dict.items():
              self.writer.add_scalar(key, item, global_step)
  
imports: import logging
  import math
  import os
  import matplotlib.pyplot
  import torch
  from torch.utils.tensorboard import SummaryWriter
  from torchvision.utils import make_grid
  import slowfast.utils.logging
  import slowfast.visualization.utils
  from slowfast.utils.misc import get_class_names
label_desc: Use image node_id 2 for calling the TensorboardWriter obj's underlying member method code with example usage: obj.add_scalars(data_dict, global_step) without return types