docstr: Verify that scripting RNNT does not change the behavior of method `predict`.
docstr_tok: ["Verify","that","scripting","RNNT","does","not","change","the","behavior","of","method","`","predict","`","."]
code: def test_torchscript_consistency_predict(self):
      r"""Verify that scripting RNNT does not change the behavior of method `predict`."""
      input, lengths = self._get_predictor_input()
  
      rnnt = self._get_model()
      scripted = torch_script(rnnt)
  
      ref_state, scripted_state = None, None
      for _ in range(2):
          ref_out, ref_lengths, ref_state = rnnt.predict(
              input, lengths, ref_state
          )
          (
              scripted_out,
              scripted_lengths,
              scripted_state,
          ) = scripted.predict(input, lengths, scripted_state)
          self.assertEqual(ref_out, scripted_out)
          self.assertEqual(ref_lengths, scripted_lengths)
          self.assertEqual(ref_state, scripted_state)
  
file_path: audio/test/torchaudio_unittest/prototype/rnnt_test_impl.py
imports: import torch
  from torchaudio.prototype.models import conformer_rnnt_model
  from torchaudio_unittest.common_utils import TestBaseMixin, torch_script
label_desc: Use image node_id 10 for calling the ConformerRNNTTestImpl obj's underlying member method code with example usage: obj.test_torchscript_consistency_predict() without return types