def METHOD_NAME(tmp_path, fformat, grid_property):
    filename = tmp_path / f"gridprop.{fformat}"
    grid_property.to_file(filename, fformat=fformat, name=grid_property.name)
    prop2 = xtgeo.gridproperty_from_file(
        filename, fformat=fformat, name=grid_property.name, grid=grid_property.geometry
    )
    if fformat == "grdecl":
        prop2.isdiscrete = grid_property.isdiscrete
    assert_allclose(grid_property.values, prop2.values, atol=0.01)