def METHOD_NAME():
    """Get the event loop. Close it if one is returned.
    Returns the (closed) event loop. This is a silly thing
    to do and leaves the thread in a broken state, but it's
    enough for this test. Closing the loop avoids resource
    leak warnings.
    """
    loop = asyncio.get_event_loop()
    loop.close()
    return loop