code: def test_source_range_simple(self):
      class FooTest(torch.jit.ScriptModule):
          @torch.jit.script_method
          def forward(self, x, w):
              return torch.mm(x, w.t())
  
      ft = FooTest()
      loaded = self.getScriptExportImportCopy(ft)
      _, lineno = inspect.getsourcelines(FooTest)
  
      with self.assertRaisesRegex(
          RuntimeError,
          f'test_lite_script_module.py", line {lineno + 3}',
      ):
          loaded(torch.rand(3, 4), torch.rand(30, 40))
  
imports: import torch
  import torch.utils.bundled_inputs
  import io
  from tempfile import TemporaryFileName
  from typing import Dict, List
  import inspect
  from torch.testing import FileCheck
  from torch.jit.mobile import _load_for_lite_interpreter, _export_operator_list
  from torch.testing._internal.common_utils import TestCase, run_tests
  from torch.testing._internal.common_quantization import AnnotatedSingleLayerLinearModel, TwoLayerLinearModel, AnnotatedNestedModel
  from torch.testing._internal.common_quantization import QuantizationLiteTestCase
label_desc: Use image node_id 11 for calling the TestLiteScriptModule obj's underlying member method code with example usage: obj.test_source_range_simple() and returns: torch