async def METHOD_NAME(self, tenant_id, labels):
    # create an agent
    agent_id = await api.agents.register_agent(
        tenant_id=tenant_id,
        labels=labels,
    )
    agent = await models.Agent.where(id=agent_id).first(
        {"id", "tenant_id", "labels"}
    )
    assert agent.id == agent_id
    assert agent.tenant_id == tenant_id
    assert agent.labels == []