def METHOD_NAME(path):
    """
    Split the requested path into (locale, path).
    locale will be empty if it isn't found.
    """
    path = path.lstrip("/")
    # Use partition instead of split since it always returns 3 parts
    first, _, rest = path.partition("/")
    lang = first.lower()
    if lang in settings.LANGUAGE_URL_MAP:
        return settings.LANGUAGE_URL_MAP[lang], rest
    elif get_non_supported(lang) is not None:
        return get_non_supported(lang), rest
    else:
        supported = find_supported(first)
        if supported:
            return supported[0], rest
        else:
            return "", path