code: def merge_token_labels_to_slot(
      token_ranges, labels, use_bio_label=True
  ):
      # ensures that all labels, some of which may be SpecialToken tyeps,
      # are normalized to string for the metric reporter
      labels = [str(x) for x in labels]
      summary_list = (
          merge_token_labels_by_bio(token_ranges, labels)
          if use_bio_label
          else merge_token_labels_by_label(token_ranges, labels)
      )
  
      return ",".join(summary_list)
  
imports: import builtins
  import json
  import os
  import unicodedata
  from typing import Any, List, Optional, Tuple
label_desc: Use image node_id 14 for calling a global function with example usage: merge_token_labels_to_slot(token_ranges, labels, use_bio_label) and returns: str