def is_valid_uri(uri, encoding='utf-8', **kwargs):
 return URIReference.from_string(uri, encoding).is_valid(**kwargs)

def is_valid_uri ( uri , encoding = 'utf-8' , ** kwargs ) : return URIReference . from_string ( uri , encoding ) . is_valid ( ** kwargs )
determine if the uri given is valid .