def METHOD_NAME(self):
    loop = asyncio.BaseEventLoop()
    loop._process_events = mock.Mock()
    loop._selector = mock.Mock()
    loop._selector.select.return_value = ()
    loop.shutdown_ag_run = False
    async def shutdown_asyncgens():
        loop.shutdown_ag_run = True
    loop.shutdown_asyncgens = shutdown_asyncgens
    return loop