code: def test_complex_list_sum(self):
      def fn(x: List[complex]):
          return sum(x)
  
      self.checkScript(
          fn, (torch.randn(4, dtype=torch.cdouble).tolist(),)
      )
  
imports: import torch
  import os
  import sys
  from torch.testing._internal.jit_utils import JitTestCase, execWrapper
  from torch.testing._internal.common_utils import IS_MACOS
  from typing import List, Dict
  from itertools import product
  from textwrap import dedent
  import cmath
label_desc: Use image node_id 12 for calling the TestComplex obj's underlying member method code with example usage: obj.test_complex_list_sum() and returns: sum