def METHOD_NAME(op, data, mask, aggcontext=None, **kwargs):
    name = type(op).__name__.lower()
    if isinstance(aggcontext, (agg_ctx.Summarize, agg_ctx.Transform)):
        result = aggcontext.agg(data, name)
    else:
        # Note this branch is not currently hit in the dask backend but is
        # here for future scaffolding.
        result = aggcontext.agg(data, operator.methodcaller(name))
    return result