def METHOD_NAME():
    """Check handle_api_hint method"""
    from optimade.server.routers.utils import BASE_URL_PREFIXES
    from optimade.server.warnings import FieldValueNotRecognized, TooManyValues
    api_hint = ["v1", "v2"]
    warning_detail = "`api_hint` should only be supplied once, with a single value."
    with pytest.warns(TooManyValues, match=warning_detail):
        assert HandleApiHint.handle_api_hint(api_hint) is None
    api_hint = BASE_URL_PREFIXES["patch"][1:]
    warning_detail = f"{api_hint!r} is not recognized as a valid `api_hint` value."
    with pytest.warns(FieldValueNotRecognized, match=warning_detail):
        assert HandleApiHint.handle_api_hint([api_hint]) is None
    for version_part in ("major", "minor"):
        api_hint = BASE_URL_PREFIXES[version_part][1:]
        assert (
            HandleApiHint.handle_api_hint([api_hint]) == BASE_URL_PREFIXES[version_part]
        )
    with pytest.raises(VersionNotSupported):
        api_hint = f"v{int(BASE_URL_PREFIXES['major'][len('/v'):]) + 1}"
        HandleApiHint.handle_api_hint([api_hint])
    api_hint = "v0"
    assert HandleApiHint.handle_api_hint([api_hint]) == BASE_URL_PREFIXES["major"]
    api_hint = f"{BASE_URL_PREFIXES['major'][1:]}.{int(BASE_URL_PREFIXES['minor'].split('.')[-1]) + 1}"
    assert HandleApiHint.handle_api_hint([api_hint]) == BASE_URL_PREFIXES["major"]