def METHOD_NAME(self):
    for dtype in [np.complex64, np.complex128]:
        for device in devices:
            with self.subTest(device=device, dtype=dtype):
                xp = device.xp
                array = xp.array([1 + 1j, 2 + 2j, 3 + 3j], dtype=dtype)
                tensor = pytorch.to_pytorch(array)
                array[0] = 0
                torch.testing.assert_allclose(
                    tensor,
                    torch.tensor(
                        [[0, 0], [2, 2], [3, 3]],
                        dtype=tensor.dtype,
                        device=tensor.device,
                    ),
                )