code: def uri_to_path(uri: str) -> str:
      """
      Convert a file URI to a path.
  
      Args:
          uri: URI to convert to path.
  
      Returns:
          Path string. (unquoted)
      """
      parsed = urlparse(uri)
      if parsed.scheme not in ("file", "filesystem", "unix"):
          raise ValueError("Unsupported URI scheme")
      host = "{0}{0}{mnt}{0}".format(os.path.sep, mnt=parsed.netloc)
      return os.path.normpath(
          os.path.join(host, url2pathname(unquote(parsed.path)))
      )
  
file_path: BentoML/grpc-client/bentoml/_internal/utils/uri.py
imports: import os
  import pathlib
  from urllib.parse import quote
  from urllib.parse import unquote
  from urllib.parse import urlparse
  from urllib.request import url2pathname
  import psutil
label_desc: Use image node_id 2 for calling a global function with example usage: uri_to_path(uri) and returns: os