docstr: Log a list of images.
docstr_tok: ["Log","a","list","of","images","."]
code: def image_summary(self, tag, images, step):
      """Log a list of images."""
  
      img_summaries = []
      for i, img in enumerate(images):
          # Write the image to a string
          try:
              s = StringIO()
          except:
              s = BytesIO()
          scipy.misc.toimage(img).save(s, format="png")
  
          # Create an Image object
          img_sum = tf.Summary.Image(
              encoded_image_string=s.getvalue(),
              height=img.shape[0],
              width=img.shape[1],
          )
          # Create a Summary value
          img_summaries.append(
              tf.Summary.Value(tag="%s/%d" % (tag, i), image=img_sum)
          )
  
      # Create and write Summary
      summary = tf.Summary(value=img_summaries)
      self.writer.add_summary(summary, step)
  
file_path: pytorch-tutorial/tutorials/04-utils/tensorboard/logger.py
imports: import tensorflow
  import numpy
  import scipy.misc
label_desc: Use image node_id 3 for calling the Logger obj's underlying member method code with example usage: obj.image_summary(tag, images, step) without return types