class_docstr: This abstract base class defines the API for summary writers.
class_docstr_tok: ["This","abstract","base","class","defines","the","API","for","summary","writers","."]
docstr: Create summary writer.
  
  :param summary_writer: Activate summary writer for TensorBoard.
                 Default is `False` and deactivated summary writer.
                 If `True` save runs/CURRENT_DATETIME_HOSTNAME in current directory.
                 If of type `str` save in path.
                 Use hierarchical folder structure to compare between runs easily. e.g. pass in
                 ‘runs/exp1’, ‘runs/exp2’, etc. for each new experiment to compare across them.
docstr_tok: ["Create","summary","writer",".",":","param","summary_writer",":","Activate","summary","writer","for","TensorBoard",".","Default","is","`","False","`","and","deactivated","summary","writer",".","If","`","True","`","save","runs\/CURRENT_DATETIME_HOSTNAME","in","current","directory",".","If","of","type","`","str","`","save","in","path",".","Use","hierarchical","folder","structure","to","compare","between","runs","easily",".","e.g",".","pass","in","\u2018","runs\/exp1","\u2019",",","\u2018","runs\/exp2","\u2019",",","etc",".","for","each","new","experiment","to","compare","across","them","."]
code: def __init__(self, summary_writer: Union[str, bool]):
      """
      Create summary writer.
  
      :param summary_writer: Activate summary writer for TensorBoard.
                     Default is `False` and deactivated summary writer.
                     If `True` save runs/CURRENT_DATETIME_HOSTNAME in current directory.
                     If of type `str` save in path.
                     Use hierarchical folder structure to compare between runs easily. e.g. pass in
                     ‘runs/exp1’, ‘runs/exp2’, etc. for each new experiment to compare across them.
      """
      self._summary_writer_arg = summary_writer
      self._init_counter = 0
  
      self._init_summary_writer(summary_writer, init_counter=0)
  
file_path: adversarial-robustness-toolbox/art/summary_writer.py
imports: from abc import ABC, abstractmethod
  from math import sqrt
  from typing import Dict, List, Optional, Union
  import numpy
label_desc: Use image node_id 1 to create a new SummaryWriter object from inherited base classes: ABC with example: obj = SummaryWriter(summary_writer)