docstr: Write to disk a summary with the given metadata.
  
  Arguments:
    logdir: a string
    summary_metadata: a `SummaryMetadata` protobuf object
    nonce: optional; will be added to the end of the event file name
      to guarantee that multiple calls to this function do not stomp the
      same file
code: def _writeMetadata(self, logdir, summary_metadata, nonce=""):
      """Write to disk a summary with the given metadata.
  
      Arguments:
        logdir: a string
        summary_metadata: a `SummaryMetadata` protobuf object
        nonce: optional; will be added to the end of the event file name
          to guarantee that multiple calls to this function do not stomp the
          same file
      """
  
      summary = summary_pb2.Summary()
      summary.value.add(
          tensor=tensor_util.make_tensor_proto(
              ["po", "ta", "to"], dtype=tf.string
          ),
          tag="you_are_it",
          metadata=summary_metadata,
      )
      writer = test_util.FileWriter(logdir, filename_suffix=nonce)
      writer.add_summary(summary.SerializeToString())
      writer.close()
  
imports: import os
  import numpy
  import tensorflow
  from tensorboard.backend.event_processing import event_accumulator
  from tensorboard.compat.proto import config_pb2
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import graph_pb2
  from tensorboard.compat.proto import meta_graph_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.distribution import compressor
  from tensorboard.util import tensor_util
  from tensorboard.util import test_util
  from tensorboard.util import tb_logging
label_desc: Use image node_id 3 for calling the RealisticEventAccumulatorTest obj's underlying member method code with example usage: obj._writeMetadata(logdir, summary_metadata, nonce) without return types