class_docstr: These tests are separate from the rest of the JIT tests because we need
  run a new subprocess and `import torch` with the correct environment
  variables set.
class_docstr_tok: ["These","tests","are","separate","from","the","rest","of","the","JIT","tests","because","we","need","run","a","new","subprocess","and","`","import","torch","`","with","the","correct","environment","variables","set","."]
code: def test_script_module_construction(self):
      _program_string = """
  import torch
  
  class AModule(torch.jit.ScriptModule):
      @torch.jit.script_method
      def forward(self, input):
          pass
  
  AModule()
  print("Didn't throw exception")
  """
      self.compare_enabled_disabled(_program_string)
  
file_path: pytorch/test/test_jit_disabled.py
imports: import sys
  import os
  import contextlib
  import subprocess
  from torch.testing._internal.common_utils import TestCase, run_tests, TemporaryFileName
label_desc: Use image node_id 3 for calling the TestJitDisabled obj's underlying member method code with example usage: obj.test_script_module_construction() without return types