async def METHOD_NAME():
    def create_event():
        return Event()
    async def create_and_set_event(task_status):
        event = await anyio.to_thread.run_sync(create_event)
        task_status.started(event)
        await anyio.to_thread.run_sync(event.set)
    with anyio.fail_after(1):
        async with anyio.create_task_group() as tg:
            event = await tg.start(create_and_set_event)
            tg.start_soon(event.wait)