docstr: Test that an attempt to script a module with a regular list attribute
  containing other modules fails with a relevant error message.
docstr_tok: ["Test","that","an","attempt","to","script","a","module","with","a","regular","list","attribute","containing","other","modules","fails","with","a","relevant","error","message","."]
code: def test_normal_list_attribute_with_modules_error(self):
      """
      Test that an attempt to script a module with a regular list attribute
      containing other modules fails with a relevant error message.
      """
  
      class Mod(torch.nn.Module):
          def __init__(self):
              super().__init__()
              self.a = [torch.nn.ReLU(), torch.nn.ReLU()]
  
          def forward(self):
              return len(self.a)
  
      error_msg = "Could not infer type of list element: Cannot infer concrete type of torch.nn.Module"
      with self.assertRaisesRegexWithHighlight(
          RuntimeError, error_msg, "self.a"
      ):
          torch.jit.script(Mod())
  
imports: import os
  import sys
  from typing import Any, List, Tuple
  from collections import OrderedDict
  import torch
  import torch.nn
  from torch.testing._internal.jit_utils import JitTestCase
label_desc: Use image node_id 10 for calling the TestModuleContainers obj's underlying member method code with example usage: obj.test_normal_list_attribute_with_modules_error() and returns: len