async def METHOD_NAME(actor_pool):
    quota_ref = await mo.create_actor(
        QuotaActor,
        (actor_pool.external_address, "numa-0"),
        300,
        uid=QuotaActor.gen_uid("cpu-0"),
        address=actor_pool.external_address,
    )  # type: mo.ActorRefType[QuotaActor]
    end_time = []
    async def task_fun(b):
        await quota_ref.request_batch_quota(b)
        await asyncio.sleep(0.5)
        assert set(b.keys()) == set((await quota_ref.dump_data()).allocations.keys())
        await quota_ref.release_quotas(list(b.keys()))
        end_time.append(time.time())
    tasks = []
    for idx in (0, 1):
        keys = [f"{idx}_0", f"{idx}_1"]
        batch = dict((k, 100) for k in keys)
        tasks.append(asyncio.create_task(task_fun(batch)))
    await asyncio.wait_for(asyncio.gather(*tasks), timeout=10)
    assert abs(end_time[0] - end_time[1]) > 0.4
    assert await quota_ref.get_allocated_size() == 0