def processor(f):
    def new_func(*args, **kwargs):
        def processor(stream):
            return f(stream, *args, **kwargs)
        return processor
    return update_wrapper(new_func, f)
Helper decorator to rewrite a function so that it returns another
dataset/ETHPy150Open pallets/click/examples/imagepipe/imagepipe.py/processor