human
Complete this python program:
def generator(f):
assistant
#Here is the Python code you requested.

    """Similar to the :func:`processor` but passes through old values
    unchanged and does not pass through the values as parameter.
    """
    @processor
    def new_func(stream, *args, **kwargs):
        for item in stream:
            (yield item)
        for item in f(*args, **kwargs):
            (yield item)
    return update_wrapper(new_func, f)