<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def aslist(generator):
    'Function decorator to transform a generator into a list'
    def wrapper(*args, **kwargs):
        return list(generator(*args, **kwargs))
    return wrapper