class_docstr: Writes entries to event files in the logdir to be consumed by Tensorboard.
code: def __exit__(self, exc_type, exc_val, exc_tb):
      self.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 5 for calling the SummaryWriter obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) without return types