def normalize_uri(uri, encoding='utf-8'):
 normalized_reference = URIReference.from_string(uri, encoding).normalize()
 return normalized_reference.unsplit()

def normalize_uri ( uri , encoding = 'utf-8' ) : normalized_reference = URIReference . from_string ( uri , encoding ) . normalize ( ) return normalized_reference . unsplit ( )
normalize the given uri .