code: def split_folder_and_path(filepath):
      
      dirname = op.dirname(filepath)
      filename = op.basename(filepath)
      splitext = op.splitext(filename)
      filename_without_extension = splitext[0]
      extension = splitext[1]
  
      return dirname, filename_without_extension, extension
docs: Split a file path into its folder, filename, and extension
  
      Args:
          path (str): Path to a file
  
      Returns:
          tuple: of (folder, filename (without extension), extension)