docstr: Test that a module that has __constants__ set to something
  that is not a set can be scripted.
docstr_tok: ["Test","that","a","module","that","has","__constants__","set","to","something","that","is","not","a","set","can","be","scripted","."]
code: def test_script_module_with_constants_list(self):
      """
      Test that a module that has __constants__ set to something
      that is not a set can be scripted.
      """
  
      # torch.nn.Linear has a __constants__ attribute defined
      # and intialized to a list.
      class Net(torch.nn.Linear):
          x: torch.jit.Final[int]
  
          def __init__(self):
              super().__init__(5, 10)
              self.x = 0
  
      self.checkModule(Net(), (torch.randn(5),))
  
imports: import torch
  import os
  import sys
  from torch.testing._internal.jit_utils import JitTestCase
label_desc: Use image node_id 1 for calling the TestModules obj's underlying member method code with example usage: obj.test_script_module_with_constants_list() without return types