def METHOD_NAME():
    async def t():
        val = 0
        async def co(new_val):
            nonlocal val
            val = new_val
        hook.subscribe.group_window_add(co(8))
        hook.fire("group_window_add")
        await asyncio.sleep(0)
        assert val == 8
    asyncio.run(t())