class_docstr: Writes entries to event files in the logdir to be consumed by Tensorboard.
docstr: Adds on event to the event file.
docstr_tok: ["Adds","on","event","to","the","event","file","."]
code: def write(self, summary: Summary, step: int):
      """Adds on event to the event file."""
      self.writer.add_event(
          event_pb2.Event(
              step=step, summary=summary(), wall_time=time()
          )
      )
  
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 2 for calling the SummaryWriter obj's underlying member method code with example usage: obj.write(summary, step) without return types