async def METHOD_NAME(self, tenant_id):
    agent_id = await api.agents.register_agent(
        tenant_id=tenant_id,
        labels=["foo", "bar", "chris"],
    )
    agent_count = await models.Agent.where(id=agent_id).count()
    assert agent_count == 1
    agent_id = await api.agents.register_agent(
        tenant_id=tenant_id,
        labels=["chris", "bar", "foo"],
    )
    agent_count = await models.Agent.where(id=agent_id).count()
    assert agent_count == 1
    agent_id = await api.agents.register_agent(
        tenant_id=tenant_id,
        labels=["bar", "chris", "foo"],
    )
    agent_count = await models.Agent.where(id=agent_id).count()
    assert agent_count == 1
    agent_id = await api.agents.register_agent(
        tenant_id=tenant_id,
        labels=["foo", "chris", "bar"],
    )
    agent_count = await models.Agent.where(id=agent_id).count()
    assert agent_count == 1
    agent_id = await api.agents.register_agent(
        tenant_id=tenant_id,
        labels=["bar", "foo", "chris"],
    )
    agent_count = await models.Agent.where(id=agent_id).count()
    assert agent_count == 1
    agent_id = await api.agents.register_agent(
        tenant_id=tenant_id,
        labels=["chris", "foo", "bar"],
    )
    agent_count = await models.Agent.where(id=agent_id).count()
    assert agent_count == 1