code: def WriteImageSeries(writer, tag, n_images=1):
      """Write a few dummy images to writer."""
      step = 0
      session = tf.compat.v1.Session()
      p = tf.compat.v1.placeholder("uint8", (1, 4, 4, 3))
      s = tf.compat.v1.summary.image(tag, p)
      for _ in range(n_images):
          im = np.random.random_integers(0, 255, (1, 4, 4, 3))
          summ = session.run(s, feed_dict={p: im})
          writer.add_summary(summ, step)
          step += 20
      session.close()
  
file_path: tensorboard/tensorboard/scripts/generate_testdata.py
imports: import bisect
  import math
  import os
  import os.path
  import random
  import shutil
  from absl import app
  from absl import flags
  import numpy
  import tensorflow
label_desc: Use image node_id 5 for calling a global function with example usage: WriteImageSeries(writer, tag, n_images) without return types