def METHOD_NAME(request):
    return tuple(
        [
            (i["name"], format_lazy("{}:{}", _(i["name"]), i["id__count"]))
            for i in Constraint.objects.using(request.database)
            .values("name")
            .annotate(Count("id"))
            .order_by("name")
        ]
    )