code: def _test_dimensions(self, images):
      pb = self.image("mona_lisa", images)
      self.assertEqual(1, len(pb.value))
      result = pb.value[0].tensor.string_val
      # Check annotated dimensions.
      self.assertEqual(
          tf.compat.as_bytes(str(self.image_width)), result[0]
      )
      self.assertEqual(
          tf.compat.as_bytes(str(self.image_height)), result[1]
      )
      for i, encoded in enumerate(result[2:]):
          decoded = tf.image.decode_png(encoded)
          self.assertEqual(images[i].shape, decoded.shape)
  
imports: import glob
  import os
  import numpy
  import tensorflow
  from tensorboard.compat import tf2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.image import metadata
  from tensorboard.plugins.image import summary
label_desc: Use image node_id 7 for calling the SummaryBaseTest obj's underlying member method code with example usage: obj._test_dimensions(images) without return types