def METHOD_NAME(tmp_path, any_grid):
    if version.parse(xtgeo_version) < version.parse("2.16"):
        pytest.skip()
    any_grid.to_file(tmp_path / "grid.roff", fformat="roff")
    with pytest.warns(DeprecationWarning, match="from_file is deprecated"):
        any_grid.from_file(tmp_path / "grid.roff", fformat="roff")