docstr: Check that method `transcribe` produces correctly-shaped outputs.
docstr_tok: ["Check","that","method","`","transcribe","`","produces","correctly-shaped","outputs","."]
code: def test_output_shape_transcribe(self):
      r"""Check that method `transcribe` produces correctly-shaped outputs."""
      input_config = self._get_input_config()
      batch_size = input_config["batch_size"]
      max_input_length = input_config["max_input_length"]
  
      input, lengths = self._get_transcriber_input()
  
      model_config = self._get_model_config()
      encoding_dim = model_config["encoding_dim"]
      time_reduction_stride = model_config["time_reduction_stride"]
      rnnt = self._get_model()
  
      out, out_lengths = rnnt.transcribe(input, lengths)
      self.assertEqual(
          (
              batch_size,
              max_input_length // time_reduction_stride,
              encoding_dim,
          ),
          out.shape,
      )
      self.assertEqual((batch_size,), out_lengths.shape)
  
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 13 for calling the ConformerRNNTTestImpl obj's underlying member method code with example usage: obj.test_output_shape_transcribe() without return types