docstr: Ensure that compute_loudness works with different paddings.
docstr_tok: ["Ensure","that","compute_loudness","works","with","different","paddings","."]
code: def test_compute_loudness_padding(self, padding):
      """Ensure that compute_loudness works with different paddings."""
      sample_rate = 16000
      audio_len_sec = 0.21
      audio_sin = gen_np_sinusoid(
          self.frequency, self.amp, sample_rate, audio_len_sec
      )
      expected_len = self.expected_db_length(
          audio_sin, sample_rate, padding
      )
      loudness = spectral_ops.compute_loudness(
          audio_sin,
          sample_rate,
          self.frame_rate,
          self.frame_size,
          padding=padding,
      )
      self.assertLen(loudness, expected_len)
      self.assertTrue(np.all(np.isfinite(loudness)))
  
imports: from absl.testing import parameterized
  from ddsp import spectral_ops
  from ddsp.test_util import gen_np_sinusoid
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 8 for calling the ComputeFeaturesTest obj's underlying member method code with example usage: obj.test_compute_loudness_padding(padding) without return types