class_docstr: Logger class.
code: def __init__(
      self,
      logdir,
      name,
      xmanager_work_unit,
      xmanager_metric,
      save_loss_tensorboard_frequency,
      print_loss_frequency,
  ):
      self.logdir = logdir
      tensorboard_dir = os.path.join(logdir, f"tb_{name}")
      self.name = name
      self.summary_writer = tf.summary.create_file_writer(
          tensorboard_dir
      )
      self.losses = collections.defaultdict(list)
      self.save_loss_tensorboard_frequency = (
          save_loss_tensorboard_frequency
      )
      self.print_loss_frequency = print_loss_frequency
      self.xmanager = {}
      if xmanager_metric:
          for metric in xmanager_metric.split(","):
              self.xmanager[
                  metric
              ] = xmanager_work_unit.get_measurement_series(
                  label=metric
              )
  
file_path: graphics/tensorflow_graphics/projects/points_to_3Dobjects/utils/logger.py
imports: import collections
  import os
  import tensorflow
label_desc: Use image node_id 1 to create a new Logger object  with example: obj = Logger(logdir, name, xmanager_work_unit, xmanager_metric, save_loss_tensorboard_frequency, print_loss_frequency)