code: def test_list_sum(self):
      def fn(x: List[int]) -> int:
          return sum(x)
  
      def fn1(x: List[float]):
          return sum(x)
  
      def fn2(x: List[bool]):
          return sum(x)
  
      self.checkScript(fn, ([1, 2, 3],))
      self.checkScript(fn1, ([1.0, 2.0, 3.0],))
      self.checkScript(fn1, ([1, 2.8, 3],))
      self.checkScript(fn2, ([True, False, False],))
      self.checkScript(fn2, ([False, False, False],))
      self.checkScript(fn2, ([0, 1, 1, 0],))
  
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 13 for calling the TestTyping obj's underlying member method code with example usage: obj.test_list_sum() and returns: sum, sum, sum