docstr: Verify that the non-image parts of the image_summ proto match shape.
docstr_tok: ["Verify","that","the","non-image","parts","of","the","image_summ","proto","match","shape","."]
code: def _CheckProto(self, image_summ, shape):
      """Verify that the non-image parts of the image_summ proto match shape."""
      # Only the first 3 images are returned.
      for v in image_summ.value:
          v.image.ClearField("encoded_image_string")
      expected = "\n".join(
          """
          value {
            tag: "img/image/%d"
            image { height: %d width: %d colorspace: %d }
          }"""
          % ((i,) + shape[1:])
          for i in range(3)
      )
      self.assertProtoEquals(expected, image_summ)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/summary_ops/summary_v1_image_op_test.py
imports: import numpy
  from tensorflow.core.framework import summary_pb2
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import image_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
  from tensorflow.python.summary import summary
label_desc: Use image node_id 2 for calling the SummaryV1ImageOpTest obj's underlying member method code with example usage: obj._CheckProto(image_summ, shape) without return types