code: def parts(path):
      # type: (Text) -> List[Text]
      
      _path = normpath(path)
      components = _path.strip("/")
  
      _parts = ["/" if _path.startswith("/") else "./"]
      if components:
          _parts += components.split("/")
      return _parts
docs: Split a path in to its component parts.
  
      Arguments:
          path (str): Path to split in to parts.
  
      Returns:
          list: List of components
  
      Example:
          >>> parts('/foo/bar/baz')
          ['/', 'foo', 'bar', 'baz']