def METHOD_NAME(self, *args, **options):
    # Detect if we support color
    color = self.style.ERROR("test") != "test"
    if options["inbox_only"]:
        queryset = Document.objects.filter(tags__is_inbox_tag=True)
    else:
        queryset = Document.objects.all()
    if options["id_range"]:
        queryset = queryset.filter(
            id__range=(options["id_range"][0], options["id_range"][1]),
        )
    documents = queryset.distinct()
    classifier = load_classifier()
    for document in tqdm.tqdm(documents, disable=options["no_progress_bar"]):
        if options["correspondent"]:
            set_correspondent(
                sender=None,
                document=document,
                classifier=classifier,
                replace=options["overwrite"],
                use_first=options["use_first"],
                suggest=options["suggest"],
                base_url=options["base_url"],
                color=color,
            )
        if options["document_type"]:
            set_document_type(
                sender=None,
                document=document,
                classifier=classifier,
                replace=options["overwrite"],
                use_first=options["use_first"],
                suggest=options["suggest"],
                base_url=options["base_url"],
                color=color,
            )
        if options["tags"]:
            set_tags(
                sender=None,
                document=document,
                classifier=classifier,
                replace=options["overwrite"],
                suggest=options["suggest"],
                base_url=options["base_url"],
                color=color,
            )
        if options["storage_path"]:
            set_storage_path(
                sender=None,
                document=document,
                classifier=classifier,
                replace=options["overwrite"],
                use_first=options["use_first"],
                suggest=options["suggest"],
                base_url=options["base_url"],
                color=color,
            )