def METHOD_NAME(df, geom_col="geometry", inplace=False, _func=None, **kwargs):
    """Atomic operation internal function."""
    outval = df[geom_col].apply(lambda x: _func(x, **kwargs))
    outcol = "shape_{}".format(_func.__name__)
    if not inplace:
        new = df.copy()
        new[outcol] = outval
        return new
    df[outcol] = outval