code: def get_lightning_module():
      with patch(
          "sentencepiece.SentencePieceProcessor",
          new=partial(MockSentencePieceProcessor, num_symbols=4096),
      ), patch(
          "asr.emformer_rnnt.librispeech.lightning.GlobalStatsNormalization",
          new=torch.nn.Identity,
      ), patch(
          "torchaudio.datasets.LIBRISPEECH", new=MockLIBRISPEECH
      ), patch(
          "asr.emformer_rnnt.librispeech.lightning.CustomDataset",
          new=MockCustomDataset,
      ), patch(
          "torch.utils.data.DataLoader", new=MockDataloader
      ):
          yield LibriSpeechRNNTModule(
              librispeech_path="librispeech_path",
              sp_model_path="sp_model_path",
              global_stats_path="global_stats_path",
          )
  
file_path: audio/test/torchaudio_unittest/example/emformer_rnnt/test_librispeech_lightning.py
imports: from contextlib import contextmanager
  from functools import partial
  from unittest.mock import patch
  import torch
  from parameterized import parameterized
  from torchaudio._internal.module_utils import is_module_available
  from torchaudio_unittest.common_utils import skipIfNoModule, TorchaudioTestCase
  from .utils import MockCustomDataset, MockDataloader, MockSentencePieceProcessor
label_desc: Use image node_id 1 for calling a global function with example usage: get_lightning_module() without return types