docstr: Verify that the non-audio parts of the audio_summ proto match shape.
code: def _CheckProto(
      self, audio_summ, sample_rate, num_channels, length_frames
  ):
      """Verify that the non-audio parts of the audio_summ proto match shape."""
      # Only the first 3 sounds are returned.
      for v in audio_summ.value:
          v.audio.ClearField("encoded_audio_string")
      expected = "\n".join(
          """
          value {
            tag: "snd/audio/%d"
            audio { content_type: "audio/wav" sample_rate: %d
                    num_channels: %d length_frames: %d }
          }"""
          % (i, sample_rate, num_channels, length_frames)
          for i in range(3)
      )
      self.assertProtoEquals(expected, audio_summ)
  
file_path: tensorflow-upstream/tensorflow/python/kernel_tests/summary_ops/summary_v1_audio_op_test.py
imports: import numpy
  from tensorflow.core.framework import summary_pb2
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import test
  from tensorflow.python.summary import summary
label_desc: Use image node_id 2 for calling the SummaryV1AudioOpTest obj's underlying member method code with example usage: obj._CheckProto(audio_summ, sample_rate, num_channels, length_frames) without return types