class_docstr: Log statistics writer implementation for Tensorboard.
  :param log_dir: log_dir for TensorBoard
  :param tensorboard_render_figure: Indicates whether to visualize the actions taken in TensorBoard.
class_docstr_tok: ["Log","statistics","writer","implementation","for","Tensorboard",".",":","param","log_dir",":","log_dir","for","TensorBoard",":","param","tensorboard_render_figure",":","Indicates","whether","to","visualize","the","actions","taken","in","TensorBoard","."]
docstr: LogStatsWriter.write implementation
docstr_tok: ["LogStatsWriter.write","implementation"]
code: def close(self) -> None:
      """LogStatsWriter.write implementation"""
      self.summary_writer.close()
  
file_path: maze/maze/core/log_stats/log_stats_writer_tensorboard.py
imports: import logging
  import math
  import numbers
  from typing import Callable, Union, List, Optional
  import numpy
  from torch.utils.tensorboard import SummaryWriter
  from maze.core.annotations import override
  from maze.core.log_stats.log_stats import LogStatsWriter, LogStats, GlobalLogState
label_desc: Use image node_id 4 for calling the LogStatsWriterTensorboard obj's underlying member method code with example usage: obj.close() without return types