code: def split_spans(
      entities: List[Dict[str, str]]
  ) -> Tuple[List[str], List[str]]:
      """
      Split a list dictionary representing the entities into two aligned lists,\
              containing labels and fillers,
      respectively.
  
      :param entities: The list of entities as dictionaries.
      :return: A tuple of lists of entities' labels and fillers.
      """
      labels = []
      fillers = []
      for entity in entities:
          labels.append(entity["type"])
          fillers.append(entity["filler"])
      return labels, fillers
  
imports: from collections import defaultdict
  from copy import copy
  from typing import Dict, List, Set, Tuple
  from .distance import Distance
label_desc: Use image node_id 2 for calling a global function with example usage: split_spans(entities) and returns: labels,  fillers