docstr: Ensure that compute_rms_energy has expected output shape.
docstr_tok: ["Ensure","that","compute_rms_energy","has","expected","output","shape","."]
code: def test_compute_rms_energy(self, sample_rate, audio_len_sec):
      """Ensure that compute_rms_energy has expected output shape."""
      padding = "center"
      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
      )
      rms_energy = spectral_ops.compute_rms_energy(
          audio_sin,
          sample_rate,
          self.frame_rate,
          self.frame_size,
          padding=padding,
      )
      self.assertLen(rms_energy, expected_len)
      self.assertTrue(np.all(np.isfinite(rms_energy)))
  
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 9 for calling the ComputeFeaturesTest obj's underlying member method code with example usage: obj.test_compute_rms_energy(sample_rate, audio_len_sec) without return types