<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def auto_consume(func):
 """Decorator for auto consuming lines when leaving the function"""

    def inner(*args, **kwargs):
        func(*args, **kwargs)
        args[0].consume_line()
    return inner