human
Solve the following python programming problem given the following code:
# %load asyncio_coroutine_return.py
import asyncio

async def coroutine():
    print('in coroutine')
    return 'result'

event_loop = asyncio.get_event_loop()
try:
    return_value = event_loop.run_until_complete(
        coroutine()
    )
    print('it returned: {!r}'.format(return_value))
finally:
    event_loop.close()

!python asyncio_coroutine_return.py
Given the above code, generate some markdown instructions for it.
assistant
#Here is the Python code you requested.

The first step is to obtain a reference to the event loop. The default loop type can be used, or a specific loop class can be instantiated. In this example, the default loop is used. The run_until_complete() method starts the loop with the coroutine object and stops the loop when the coroutine exits by returning.
Returning Values from Coroutines