code: def make_image_summary(image_tensor, tag):
      """Converts the given image tensor to a tf.summary.Summary.Image."""
      encoded_image = _make_encoded_image(image_tensor)
      image_sum = tf.summary.Summary.Image(
          encoded_image_string=encoded_image
      )
      return tf.summary.Summary.Value(tag=tag, image=image_sum)
  
imports: import io
  import numpy
  from PIL import Image
  from six.moves import zip_longest
  from skimage import draw
  import tensorflow.compat.v1
label_desc: Use image node_id 35 for calling a global function with example usage: make_image_summary(image_tensor, tag) and returns: tf