code: def test_correct_outputs(self, stateless=False):
      decoder = self.get_decoder(stateless=stateless)
  
      # Add state.
      inputs = self.inputs
      if stateless:
          inputs["state"] = tf.ones([self.n_batch, self.rnn_ch])
  
      # Run through the network
      outputs = decoder(inputs)
  
      # Check normal outputs.
      for name, dim in self.output_splits:
          dummy_output = np.zeros((self.n_batch, self.n_t, dim))
          self.assertShapeEqual(dummy_output, outputs[name])
  
      # Check the explicit state.
      if stateless:
          self.assertShapeEqual(inputs["state"], outputs["state"])
          self.assertNotAllEqual(inputs["state"], outputs["state"])
  
file_path: ddsp/ddsp/training/decoders_test.py
imports: import functools
  from absl.testing import parameterized
  from ddsp.training import decoders
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the RnnFcDecoderTest obj's underlying member method code with example usage: obj.test_correct_outputs(stateless) without return types