text: all wikibase instances have it, but wikidata does, and that's where we'll start.def get_nested_value(o: dict, path: list) -> any:    current = o    for key in path:        try:            current = current[key]        except:            return None    return currentimport requestsfrom typing import Optionaldef vocab_lookup(    search: str,    entity_type: str = "item",    url: str = "https://www.wikidata.org/w/api.php",    user_agent_header: str = wikidata_user_agent_header,    srqiprofile: str = None,) -> Optional[str]:    headers = {"Accept": "application/json"}    if wikidata_user_agent_header is not None:        headers["User-Agent"] = wikidata_user_agent_header    if entity_type == "item":        srnamespace = 0        srqiprofile = "classic_noboostlinks" if srqiprofile is None else srqiprofile    elif entity_type == "property":        srnamespace = 120        srqiprofile = "classic" if srqiprofile is None else srqiprofile    else:        raise ValueError("entity_type must be either 'property' or 'item'")    params = {        "action": "query",        "list": "search",        "srsearch": search,