code: def add_summary(summary_writer, global_step, tag, value):
      """Add a new summary to the current summary_writer.
      Useful to log things that are not part of the training graph, e.g., tag=BLEU.
      """
      summary = tf.Summary(
          value=[tf.Summary.Value(tag=tag, simple_value=value)]
      )
      summary_writer.add_summary(summary, global_step)
  
imports: from __future__ import print_function
  import codecs
  import collections
  import json
  import math
  import os
  import sys
  import time
  from distutils import version
  import tensorflow
label_desc: Use image node_id 10 for calling a global function with example usage: add_summary(summary_writer, global_step, tag, value) without return types