class_docstr: Abstract filesystem interface
class_docstr_tok: ["Abstract","filesystem","interface"]
docstr: Split a pathname. Returns tuple "(head, tail)" where "tail" is everything after the final slash. Either part
  may be empty.
  
  Parameters
  ----------
  path : string
      Can be a file path or directory
  
  Returns
  -------
  usage : int
docstr_tok: ["Split","a","pathname",".","Returns","tuple","``","(","head",",","tail",")","''","where","``","tail","''","is","everything","after","the","final","slash",".","Either","part","may","be","empty",".","Parameters","--","--","--","--","--","path",":","string","Can","be","a","file","path","or","directory","Returns","--","--","--","-","usage",":","int"]
code: def path_split(self, path):
      """
      Split a pathname. Returns tuple "(head, tail)" where "tail" is everything after the final slash. Either part
      may be empty.
  
      Parameters
      ----------
      path : string
          Can be a file path or directory
  
      Returns
      -------
      usage : int
      """
      splits = path.rsplit(self.pathsep, 1)
      if len(splits) == 1:
          return "", splits[0]
      else:
          return splits
  
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 6 for calling the FileSystem obj's underlying member method code with example usage: obj.path_split(path) and returns: str,  splits, splits