class_docstr: Writes entries to event files in the logdir to be consumed by Tensorboard.
docstr: Flushes the event file to disk and close the file.
docstr_tok: ["Flushes","the","event","file","to","disk","and","close","the","file","."]
code: def close(self):
      """Flushes the event file to disk and close the file."""
      self.writer.close()
  
imports: import enum
  import os
  from time import time
  from typing import Union, Callable, Tuple, ByteString
  import numpy
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.summary.writer.event_file_writer import EventFileWriter
  from tensorboard.util.tensor_util import make_tensor_proto
  from objax import util
label_desc: Use image node_id 3 for calling the SummaryWriter obj's underlying member method code with example usage: obj.close() without return types