def METHOD_NAME(testpath):
    """Initialise points object with surface instance, to be deprecated."""
    surf = xtgeo.surface_from_file(testpath / SURFACE)
    with pytest.warns(
        DeprecationWarning,
        match="Initializing directly from RegularSurface is deprecated",
    ):
        poi = xtgeo.Points(surf)
    poi.zname = "VALUES"
    pd.testing.assert_frame_equal(poi.dataframe, surf.dataframe())