def METHOD_NAME() -> None:
    args = parse_args()
    logging_level = logging.INFO if args.verbose else logging.WARNING
    logging.basicConfig(format="%(levelname)s:%(message)s", level=logging_level)
    client: MongoClient[Dict[str, Any]] = MongoClient(args.host, args.port)
    db = client.CombineDatabase
    codec_opts: CodecOptions[Dict[str, Any]] = CodecOptions(
        uuid_representation=UuidRepresentation.PYTHON_LEGACY
    )
    semantic_domain_collection = db.get_collection("SemanticDomains", codec_options=codec_opts)
    get_semantic_domain_info(semantic_domain_collection)
    query: Dict[str, Any] = {"senses": {"$elemMatch": {"SemanticDomains": {"$ne": []}}}}
    for collection_name in ["FrontierCollection", "WordsCollection"]:
        updates: Dict[ObjectId, Any] = {}
        curr_collection = db.get_collection(collection_name, codec_options=codec_opts)
        num_docs = curr_collection.count_documents(query)
        total_docs = curr_collection.count_documents({})
        logging.info(f"Checking {num_docs}/{total_docs} documents in {collection_name}.")
        for word in curr_collection.find(query):
            found_updates = False
            for sense in word["senses"]:
                if len(sense["SemanticDomains"]) > 0:
                    for domain in sense["SemanticDomains"]:
                        if domain_needs_update(domain):
                            domain["name"] = domain["Name"]
                            domain["id"] = domain["_id"]
                            this_domain = get_domain_info(domain["id"], domain["name"])
                            domain["guid"] = this_domain.guid
                            domain["lang"] = ""
                            domain["_id"] = this_domain.mongo_id
                            domain.pop("Name", None)
                            domain.pop("Description", None)
                            found_updates = True
            if found_updates:
                updates[ObjectId(word["_id"])] = word
        # apply the updates
        logging.info(f"Updating {len(updates)}/{total_docs} documents in {collection_name}.")
        for obj_id, update in updates.items():
            curr_collection.update_one({"_id": obj_id}, {"$set": update})