def METHOD_NAME(egrid):
    with pytest.warns(UserWarning):
        assert_allclose(
            egrid.xtgeo_coord(relative_to=xtgeo.GridRelative.MAP),
            transform_xtgeo_coord_by_mapaxes(
                egrid.mapaxes, egrid.xtgeo_coord(relative_to=xtgeo.GridRelative.ORIGIN)
            ),
            atol=1e-7,
        )