code: def image(self, *args, **kwargs):
      args = list(args)
      # Force first argument to tf.uint8 since the V1 version requires this.
      args[1] = tf.cast(tf.constant(args[1]), tf.uint8)
      return summary_pb2.Summary.FromString(
          summary.op(*args, **kwargs).numpy()
      )
  
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 1 for calling the SummaryV1OpTest obj's underlying member method code with example usage: obj.image() and returns: summary_pb2