parameters: (cls, uri_string, encoding='utf-8', strict=True,
                      lazy_normalize=True)
return_statement: return cls(scheme=to_bytes(reference.scheme, encoding),
                     userinfo=to_bytes(userinfo, encoding),
                     host=to_bytes(host, encoding),
                     port=port,
                     path=to_bytes(reference.path, encoding),
                     query=to_bytes(reference.query, encoding),
                     fragment=to_bytes(reference.fragment, encoding),
                     uri_ref=reference,
                     encoding=encoding,
                     lazy_normalize=lazy_normalize)
docstring: Parse a URI from the given unicode URI string.
  
          :param str uri_string: Unicode URI to be parsed into a reference.
          :param str encoding: The encoding of the string provided
          :param bool strict: Parse strictly according to :rfc:`3986` if True.
              If False, parse similarly to the standard library's urlparse
              function.
          :returns: :class:`ParseResultBytes` or subclass thereof
docstring_summary: Parse a URI from the given unicode URI string.
docstring_tokens: Parse a URI from the given unicode URI string .
function: def from_string(cls, uri_string, encoding='utf-8', strict=True,
                      lazy_normalize=True):
          """Parse a URI from the given unicode URI string.
  
          :param str uri_string: Unicode URI to be parsed into a reference.
          :param str encoding: The encoding of the string provided
          :param bool strict: Parse strictly according to :rfc:`3986` if True.
              If False, parse similarly to the standard library's urlparse
              function.
          :returns: :class:`ParseResultBytes` or subclass thereof
          """
          reference = uri.URIReference.from_string(uri_string, encoding)
          if not lazy_normalize:
              reference = reference.normalize()
          userinfo, host, port = authority_from(reference, strict)
  
          to_bytes = compat.to_bytes
          return cls(scheme=to_bytes(reference.scheme, encoding),
                     userinfo=to_bytes(userinfo, encoding),
                     host=to_bytes(host, encoding),
                     port=port,
                     path=to_bytes(reference.path, encoding),
                     query=to_bytes(reference.query, encoding),
                     fragment=to_bytes(reference.fragment, encoding),
                     uri_ref=reference,
                     encoding=encoding,
                     lazy_normalize=lazy_normalize)
function_tokens: def from_string ( cls , uri_string , encoding = 'utf-8' , strict = True , lazy_normalize = True ) : reference = uri . URIReference . from_string ( uri_string , encoding ) if not lazy_normalize : reference = reference . normalize ( ) userinfo , host , port = authority_from ( reference , strict ) to_bytes = compat . to_bytes return cls ( scheme = to_bytes ( reference . scheme , encoding ) , userinfo = to_bytes ( userinfo , encoding ) , host = to_bytes ( host , encoding ) , port = port , path = to_bytes ( reference . path , encoding ) , query = to_bytes ( reference . query , encoding ) , fragment = to_bytes ( reference . fragment , encoding ) , uri_ref = reference , encoding = encoding , lazy_normalize = lazy_normalize )