def METHOD_NAME(testpath):
    """Load from file."""
    with pytest.warns(
        DeprecationWarning, match="Initializing directly from file name is deprecated"
    ):
        poi = xtgeo.Points(testpath / POINTSET2)
    assert poi.nrow == 30
    with pytest.warns(
        DeprecationWarning, match="Initializing directly from file name is deprecated"
    ):
        pol = xtgeo.Polygons(testpath / POLSET2)
    assert pol.nrow == 25