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