def is_canonical(path):
    # Posix recognizes '//' as a normalized path, but it is not
    # canonical (it is the same as '/').
    if path == '' or not posixpath.isabs(path) or path.startswith('//'):
        return False
    # Normpath removes trailing '/'.
    normalized_path =  posixpath.normpath(path)
    if (normalized_path != path and normalized_path + '/' != path):
        return False
    return True
True if path is absolute and normalized.
dataset/ETHPy150Open wrr/wwwhisper/wwwhisper_auth/url_utils.py/is_canonical