code: def from_string(cls, uri: str) -> "URI":
      match = _uri_regex.fullmatch(uri)
      if match is None:
          raise ValueError(f"`{uri}` is not valid uri")
      (
          _,
          scheme,
          _,
          authority,
          path,
          _,
          query,
          _,
          fragment,
      ) = match.groups()
      return URI(
          scheme=scheme,
          path=path,
          query=query,
          fragment=fragment,
          authority=authority,
          original_uri=uri,
      )
  
file_path: FATE/python/fate/arch/unify/_io.py
imports: import re
  from typing import List, Optional
label_desc: Use image node_id 2 for calling the URI obj's underlying member method code with example usage: obj.from_string(cls, uri) and returns: URI