code: def test_sum_list_wrong_type(self):
      with self.assertRaisesRegex(
          RuntimeError, "'int' object is not iterable"
      ):
  
          @torch.jit.script
          def sum_list(a):
              # type: (int) -> int
              sum = 0
              for i in a:  # noqa: T484
                  sum += i
  
              return sum
  
          sum_list(1)
  
imports: import os
  import sys
  import torch
  from torch.testing._internal.jit_utils import JitTestCase, make_global
  from torch.testing._internal.common_utils import IS_WINDOWS
  from collections import namedtuple
  from typing import List, Tuple, Dict, NamedTuple
label_desc: Use image node_id 20 for calling the TestTyping obj's underlying member method code with example usage: obj.test_sum_list_wrong_type() and returns: sum