def METHOD_NAME(self) -> None:
    """Test error on metric between objects with different domains."""
    grid_points = [2, 3, 4, 5, 6]
    fd2 = FDataGrid(
        [
            [2, 3, 4, 5, 6],
            [1, 4, 9, 16, 25],
        ],
        grid_points=grid_points,
    )
    with np.testing.assert_raises(ValueError):
        l2_distance(self.fd, fd2)