code: def parse_and_align_slot_labels_list(
      token_ranges: List[Tuple[int, int]],
      slots_field: str,
      use_bio_labels: bool = False,
  ):
      slots_field = slots_field or ""
      slot_list = parse_slot_string(slots_field)
  
      token_labels = []
      for t_start, t_end in token_ranges:
          tok_label = Slot.NO_LABEL_SLOT
          max_overlap = 0
          for s in slot_list:
              curr_overlap = s.token_overlap(t_start, t_end)
              if curr_overlap > max_overlap:
                  max_overlap = curr_overlap
                  tok_label = s.token_label(
                      use_bio_labels, t_start, t_end
                  )
          token_labels.append(tok_label)
      return token_labels
  
imports: import builtins
  import json
  import os
  import unicodedata
  from typing import Any, List, Optional, Tuple
label_desc: Use image node_id 10 for calling a global function with example usage: parse_and_align_slot_labels_list(token_ranges, slots_field, use_bio_labels) and returns: token_labels