human
I am working on the file "Lecture4.ipynb".
The first task is:
9. Decorators!

Decorators are callables that take a function as argument, and return a replacement function (with additional functionalities)
Can you write Python program for it?
 ... Write me a the Python program you requested?
assistant
#Here is the Python program you requested.

def outer(func):
    def inner(*args):
        "Inner"
        print 'Decorating...'
        ret = func()
        ret += 1
        return ret
    return inner

def foo():
    "I'm foo"
    return 1

print foo()

decorated_foo = outer(foo)

print decorated_foo()