def METHOD_NAME(gridprop):
    buf = io.BytesIO()
    gridprop.to_file(buf, fformat="roff")
    buf.seek(0)
    gridprop2 = xtgeo.gridproperty_from_file(buf, fformat="roff")
    assert gridprop2.name == gridprop.name
    np.testing.assert_allclose(gridprop2.values, gridprop.values)
    # deprecated name="unknown"
    buf.seek(0)
    with pytest.warns(DeprecationWarning, match="name='unknown'"):
        gridprop3 = xtgeo.gridproperty_from_file(buf, name="unknown", fformat="roff")
    assert gridprop3.name == gridprop.name