docstr: Test correct shape with all losses active.
docstr_tok: ["Test","correct","shape","with","all","losses","active","."]
code: def test_output_shape_is_correct(self):
      """Test correct shape with all losses active."""
      loss_obj = losses.SpectralLoss(
          mag_weight=1.0,
          delta_time_weight=1.0,
          delta_freq_weight=1.0,
          cumsum_freq_weight=1.0,
          logmag_weight=1.0,
          loudness_weight=1.0,
      )
  
      input_audio = tf.ones((3, 8000), dtype=tf.float32)
      target_audio = tf.ones((3, 8000), dtype=tf.float32)
  
      loss = loss_obj(input_audio, target_audio)
  
      self.assertListEqual([], loss.shape.as_list())
      self.assertTrue(np.isfinite(loss))
  
file_path: ddsp/ddsp/losses_test.py
imports: from ddsp import core
  from ddsp import losses
  import numpy
  import tensorflow
label_desc: Use image node_id 1 for calling the SpectralLossTest obj's underlying member method code with example usage: obj.test_output_shape_is_correct() without return types