<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def async_handler(handler):
 """ This decorator allows for use of async handlers by automatically running them in an event loop. The loop is added to the context object for if the handler needs it. Usage:: 'foobar' *NOTE: Python 3 only* """

    @wraps(handler)
    def wrapper(event, context):
        context.loop = asyncio.get_event_loop()
        return context.loop.run_until_complete(handler(event, context))

    return wrapper