human
I am working on the file "Lecture4-Main.ipynb".
The first task is:
A common practice is to replace the original function with the decorated function
Can you write Python program for it?

Give me a the Python program you requested?
assistant
#Here is the Python program you requested.

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

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

print foo()
foo = outer(foo)

print foo()