class_docstr: This class is adapted with minor modifications from
  https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/summary/writer/writer.py#L125
  Users should not use this class directly for logging MXNet data.
  This class abstractly implements the SummaryWriter API: add_summary.
  The endpoint generates an event protobuf from the Summary object, and passes
  the event protobuf to _event_writer, which is of type EventFileWriter, for logging.
docstr: Initializes the _event_writer with the passed-in value.
  
  Parameters
  ----------
    event_writer: EventFileWriter
        An event file writer writing events to the files in the path `logdir`.
docstr_tok: ["Initializes","the","_event_writer","with","the","passed-in","value",".","Parameters","--","--","--","--","--","event_writer",":","EventFileWriter","An","event","file","writer","writing","events","to","the","files","in","the","path","`","logdir","`","."]
code: def __init__(self, event_writer):
      """Initializes the _event_writer with the passed-in value.
  
      Parameters
      ----------
        event_writer: EventFileWriter
            An event file writer writing events to the files in the path `logdir`.
      """
      self._event_writer = event_writer
      # This set contains tags of Summary Values that have been encountered
      # already. The motivation here is that the SummaryWriter only keeps the
      # metadata property (which is a SummaryMetadata proto) of the first Summary
      # Value encountered for each tag. The SummaryWriter strips away the
      # SummaryMetadata for all subsequent Summary Values with tags seen
      # previously. This saves space.
      self._seen_summary_tags = set()
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import time
  import json
  import os
  import logging
  from .proto import event_pb2
  from .proto import summary_pb2
  from .event_file_writer import EventFileWriter
  from .summary import scalar_summary, histogram_summary, image_summary, audio_summary
  from .summary import text_summary, pr_curve_summary, _net2pb
  from .utils import _save_embedding_tsv, _make_sprite_image, _make_metadata_tsv
  from .utils import _add_embedding_config, _make_numpy_array, _get_embedding_dir
  from .utils import _is_2D_matrix
label_desc: Use image node_id 1 to create a new SummaryToEventTransformer object from inherited base classes: object with example: obj = SummaryToEventTransformer(event_writer)