def METHOD_NAME():
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(None)
    async def waiter(timeout):
        await asyncio.sleep(timeout)
        yield 1
    async def wait():
        async for _ in waiter(1):
            pass
    t1 = loop.create_task(wait())
    t2 = loop.create_task(wait())
    loop.run_until_complete(asyncio.sleep(0.01))
    t1.cancel()
    t2.cancel()
    try:
        loop.run_until_complete(t1)
    except asyncio.CancelledError:
        pass
    try:
        loop.run_until_complete(t2)
    except asyncio.CancelledError:
        pass
    loop.run_until_complete(loop.shutdown_asyncgens())
    loop.close()