code: def split_path(path: str) -> List[str]:
      """
      Splits at each separator. This is different from os.path.split which only splits at last separator.
      """
      return path.split(os.sep)
  
file_path: PaddleSeg/contrib/MedicalSeg/tools/preprocess_utils/file_and_folder_operations.py
imports: import os
  import pickle
  import json
  from typing import List
  from .path_utils import join_paths
label_desc: Use image node_id 10 for calling a global function with example usage: split_path(path) and returns: path