def METHOD_NAME(tmp_path, grid, data):
    filepath = tmp_path / "gridprop.grdecl"
    prop = data.draw(st.sampled_from(grid.get_xyz_corners()))
    prop.to_file(filepath, fformat="grdecl")
    prop_from_file = xtgeo.gridproperty_from_file(
        filepath, name=prop.name, fformat="grdecl", grid=grid
    )
    assert_allclose(prop.get_npvalues1d(), prop_from_file.get_npvalues1d(), atol=1e-3)