parameters: (path)
return_statement: return path[:i], path[i + 1:]
docstring: Replacement for os.path.split().
docstring_summary: Replacement for os.path.split().
docstring_tokens: Replacement for os . path . split () .
function: def _path_split(path):
      """Replacement for os.path.split()."""
      i = max(path.rfind(p) for p in path_separators)
      if i < 0:
          return '', path
      return path[:i], path[i + 1:]
function_tokens: def _path_split ( path ) : i = max ( path . rfind ( p ) for p in path_separators ) if i < 0 : return '' , path return path [ : i ] , path [ i + 1 : ]