def METHOD_NAME(reekset, oper, inside, expected):
    """Do operations in relation to polygons in a generic way"""
    logger.info("Simple case...")
    _surf, poly = reekset
    _surf.values = 1.0
    for version in (1, 2):
        surf = _surf.copy()
        surf.operation_polygons(
            poly, 100.0, inside=inside, opname=oper, _version=version
        )
        assert surf.values.mean() == pytest.approx(expected, abs=0.001)