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 metadata information for a single session.run() call.
  
  Args:
    run_metadata: A `RunMetadata` protobuf object.
    tag: The tag name for this metadata.
    global_step: Number. Optional global step counter to record with the
      StepStats.
  
  Raises:
    ValueError: If the provided tag was already used for this type of event.
code: def add_run_metadata(self, run_metadata, tag, global_step=None):
      """Adds a metadata information for a single session.run() call.
  
      Args:
        run_metadata: A `RunMetadata` protobuf object.
        tag: The tag name for this metadata.
        global_step: Number. Optional global step counter to record with the
          StepStats.
  
      Raises:
        ValueError: If the provided tag was already used for this type of event.
      """
      if tag in self._session_run_tags:
          raise ValueError(
              "The provided tag was already used for this event type"
          )
      self._session_run_tags[tag] = True
  
      tagged_metadata = event_pb2.TaggedRunMetadata()
      tagged_metadata.tag = tag
      # Store the `RunMetadata` object as bytes in order to have postponed
      # (lazy) deserialization when used later.
      tagged_metadata.run_metadata = run_metadata.SerializeToString()
      event = event_pb2.Event(tagged_run_metadata=tagged_metadata)
      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 8 for calling the SummaryToEventTransformer obj's underlying member method code with example usage: obj.add_run_metadata(run_metadata, tag, global_step) without return types