class_docstr: Class write logs to TensorBoard (using pure TensorBoard, not one from TensorFlow).
docstr: Args:
      logdir: dir where TensorBoard events will be written
      run_id: name for log id, otherwise it usses datetime
docstr_tok: ["Args",":","logdir",":","dir","where","TensorBoard","events","will","be","written","run_id",":","name","for","log","id",",","otherwise","it","usses","datetime"]
code: def __init__(
      self,
      logdir: str = "./tensorboard_logs/",
      run_id: Optional[str] = None,
  ):
      """
      Args:
          logdir: dir where TensorBoard events will be written
          run_id: name for log id, otherwise it usses datetime
      """
      from tensorboard import summary
  
      self.summary = summary
      run_id = (
          datetime.now()
          .isoformat()[:-7]
          .replace("T", " ")
          .replace(":", "_")
          if run_id is None
          else run_id
      )
      self._path = path.join(logdir, run_id)
      self.writer = summary.create_file_writer(self._path)
  
file_path: livelossplot/livelossplot/outputs/tensorboard_logger.py
imports: from datetime import datetime
  from os import path
  from typing import Optional
  from livelossplot.main_logger import MainLogger
  from livelossplot.outputs.base_output import BaseOutput
label_desc: Use image node_id 1 to create a new TensorboardLogger object from inherited base classes: BaseOutput with example: obj = TensorboardLogger(logdir, run_id)