class_docstr: Abstractly implements the SummaryWriter API.
  
  This API basically implements a number of endpoints (add_summary,
  add_session_log, etc). The endpoints all generate an event protobuf, which is
  passed to the contained event_writer.
docstr: Adds a `SessionLog` protocol buffer to the event file.
  
  This method wraps the provided session in an `Event` protocol buffer
  and adds it to the event file.
  
  Args:
    session_log: A `SessionLog` protocol buffer.
    global_step: Number. Optional global step value to record with the
      summary.
code: def add_session_log(self, session_log, global_step=None):
      """Adds a `SessionLog` protocol buffer to the event file.
  
      This method wraps the provided session in an `Event` protocol buffer
      and adds it to the event file.
  
      Args:
        session_log: A `SessionLog` protocol buffer.
        global_step: Number. Optional global step value to record with the
          summary.
      """
      event = event_pb2.Event(session_log=session_log)
      self._add_event(event, global_step)
  
imports: import os.path
  import time
  import warnings
  from tensorflow.core.framework import graph_pb2
  from tensorflow.core.framework import summary_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.core.util import event_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import meta_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.summary import plugin_asset
  from tensorflow.python.summary.writer.event_file_writer import EventFileWriter
  from tensorflow.python.summary.writer.event_file_writer_v2 import EventFileWriterV2
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 3 for calling the SummaryToEventTransformer obj's underlying member method code with example usage: obj.add_session_log(session_log, global_step) without return types