code: def test_sum_complex_1(self, dt):
      for v in (0, 1, 2, 7, 8, 9, 15, 16, 19, 127, 128, 1024, 1235):
          tgt = dt(v * (v + 1) / 2) - dt((v * (v + 1) / 2) * 1j)
          d = np.empty(v, dtype=dt)
          d.real = np.arange(1, v + 1)
          d.imag = -np.arange(1, v + 1)
          assert_allclose(np.sum(d), tgt, atol=1.5e-5)
          assert_allclose(np.sum(np.flip(d)), tgt, atol=1.5e-7)
  
imports: from unittest import skipIf, SkipTest
  import numpy
  import pytest
  from pytest import raises
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 6 for calling the TestSum obj's underlying member method code with example usage: obj.test_sum_complex_1(dt) without return types