class_docstr: Abstract filesystem interface
class_docstr_tok: ["Abstract","filesystem","interface"]
code: def parse_from_path(uri: str):
      parsed_uri = urlparse(uri)
      options = dict()
      options["host"] = parsed_uri.netloc.rsplit("@", 1)[-1].rsplit(
          ":", 1
      )[0]
      if parsed_uri.port:
          options["port"] = parsed_uri.port
      if parsed_uri.username:
          options["user"] = parsed_uri.username
      if parsed_uri.password:
          options["password"] = parsed_uri.password
      return options
  
imports: import os
  from abc import ABC, abstractmethod
  from urllib.parse import urlparse
  from typing import Union, List, Dict, Tuple, BinaryIO, TextIO, Iterator
  from ...utils import stringify_path
label_desc: Use image node_id 20 for calling the FileSystem obj's underlying member method code with example usage: obj.parse_from_path(uri) and returns: options