code: def to_string(self) -> str:
      uri = ""
      if self.scheme:
          uri += f"{self.scheme}:"
      if self.authority:
          uri += f"//{self.authority}"
      elif self.scheme:
          uri += f"//"
      uri += self.path
      if self.query:
          uri += f"?{self.query}"
      if self.fragment:
          uri += f"#{self.fragment}"
      return uri
  
file_path: FATE/python/fate/arch/unify/_io.py
imports: import re
  from typing import List, Optional
label_desc: Use image node_id 3 for calling the URI obj's underlying member method code with example usage: obj.to_string() and returns: uri