def METHOD_NAME(cls, registry, **kwargs) -> None:
    # registry.register_facet_provider(CategoryFacetProvider())
    from geonode.base.models import Thesaurus
    # this query return the list of thesaurus X the list of localized titles
    q = (
        Thesaurus.objects.filter(facet=True)
        .values("identifier", "title", "order", "rel_thesaurus__label", "rel_thesaurus__lang")
        .order_by("order")
    )
    # coalesce the localized labels
    ret = {}
    for r in q.all():
        identifier = r["identifier"]
        t = ret.get(identifier, None)
        if not t:
            t = {k: r[k] for k in ("identifier", "title", "order")}
            t["labels"] = {}
        if r["rel_thesaurus__lang"] and r["rel_thesaurus__label"]:
            t["labels"][r["rel_thesaurus__lang"]] = r["rel_thesaurus__label"]
        ret[identifier] = t
    logger.info("Creating providers for %r", ret)
    for t in ret.values():
        registry.register_facet_provider(
            ThesaurusFacetProvider(t["identifier"], t["title"], t["order"], t["labels"], **kwargs)
        )