class_docstr: Saves data in event and summary protos for tensorboard.
class_docstr_tok: ["Saves","data","in","event","and","summary","protos","for","tensorboard","."]
code: def __del__(self):  # safe?
      # TODO(afrozm): Sometimes this complains with
      #  `TypeError: 'NoneType' object is not callable`
      try:
          self.close()
      except Exception:  # pylint: disable=broad-except
          pass
  
imports: import io
  import struct
  import time
  import warnings
  import wave
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import tensorflow
  from tensorflow.core.util import event_pb2
  from tensorflow.python.summary.writer.event_file_writer import EventFileWriter
label_desc: Use image node_id 4 for calling the SummaryWriter obj's underlying member method code with example usage: obj.__del__() without return types