code: def get_seq_count_fn(span_type="token"):
      span_type_fn_mapping = {
          "token": sequence_labeling_token_counts,
          "overlap": partial(
              sequence_labeling_counts, equality_fn=sequences_overlap
          ),
          "exact": partial(
              sequence_labeling_counts, equality_fn=sequence_exact_match
          ),
          "superset": partial(
              sequence_labeling_counts, equality_fn=sequence_superset
          ),
      }
      return span_type_fn_mapping[span_type]
  
imports: import os
  import copy
  from functools import partial
  from collections import defaultdict, OrderedDict
  import numpy
  from sklearn.metrics import confusion_matrix
  from tensorflow.python.platform import gfile
  from tensorflow.python.summary import summary_iterator
  import tabulate
  from finetune.encoding.input_encoder import get_spacy
label_desc: Use image node_id 21 for calling a global function with example usage: get_seq_count_fn(span_type) and returns: span_type_fn_mapping