code: def test_tf_and_np_are_consistent(self):
      amp = 1e-2
      audio = amp * (
          np.random.rand(64000).astype(np.float32) * 2.0 - 1.0
      )
      frame_size = 2048
      frame_rate = 250
  
      ld_tf = spectral_ops.compute_loudness(
          audio, n_fft=frame_size, frame_rate=frame_rate, use_tf=True
      )
  
      ld_np = spectral_ops.compute_loudness(
          audio, n_fft=frame_size, frame_rate=frame_rate, use_tf=False
      )
  
      self.assertAllClose(
          np.abs(ld_np), np.abs(ld_tf), rtol=1e-3, atol=1e-3
      )
  
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 1 for calling the LoudnessTest obj's underlying member method code with example usage: obj.test_tf_and_np_are_consistent() without return types