def METHOD_NAME(coro):
    """Run an internal coroutine."""
    loop = (
        asyncio.ProactorEventLoop()  # type:ignore
        if IS_WINDOWS
        else asyncio.new_event_loop()
    )
    asyncio.set_event_loop(loop)
    return loop.run_until_complete(coro)