def ensure_future(fut, *, loop=None):
if sys.version_info < (<NUM_LIT:3>, <NUM_LIT:4>, <NUM_LIT:4>):<EOL><INDENT>func = getattr(asyncio, "<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>func = asyncio.ensure_future<EOL><DEDENT>return func(fut, loop=loop)<EOL>
Wraps asyncio.async()/asyncio.ensure_future() depending on the python version
:param fut: The awaitable, future, or coroutine to wrap
:param loop: The loop to run in
:return: The wrapped future