docs: def split_path(path, ref=None):
      """
      Split a path into its components.
  
      Parameters
      ----------
      path : str
          absolute or relative path with respect to `ref`
      ref : str or None
          reference path if `path` is relative
  
      Returns
      -------
      list : str
          components of the path
      """
      path = abspath(path, ref)
      return path.strip(os.path.sep).split(os.path.sep)