class_docstr: Base class for the handlers to write data into TensorBoard.
  
  Args:
      summary_writer: user can specify TensorBoard or TensorBoardX SummaryWriter,
          default to create a new TensorBoard writer.
      log_dir: if using default SummaryWriter, write logs to this directory, default is `./runs`.
class_docstr_tok: ["Base","class","for","the","handlers","to","write","data","into","TensorBoard",".","Args",":","summary_writer",":","user","can","specify","TensorBoard","or","TensorBoardX","SummaryWriter",",","default","to","create","a","new","TensorBoard","writer",".","log_dir",":","if","using","default","SummaryWriter",",","write","logs","to","this","directory",",","default","is","`",".\/runs","`","."]
docstr: Close the summary writer if created in this TensorBoard handler.
docstr_tok: ["Close","the","summary","writer","if","created","in","this","TensorBoard","handler","."]
code: def close(self):
      """
      Close the summary writer if created in this TensorBoard handler.
  
      """
      if self.internal_writer:
          self._writer.close()
  
imports: from __future__ import annotations
  import warnings
  from collections.abc import Callable, Sequence
  from typing import TYPE_CHECKING, Any
  import numpy
  import torch
  from monai.config import IgniteInfo
  from monai.utils import is_scalar, min_version, optional_import
  from monai.visualize import plot_2d_or_3d_image
label_desc: Use image node_id 3 for calling the TensorBoardHandler obj's underlying member method code with example usage: obj.close() without return types