code: def process_line(line, label_F1=False):
      label_lst = []
      line = line.replace("  ", " ")
      wrd_lst = line.split(" ")
      phrase_lst, is_entity, num_illegal_assignments = [], False, 0
      for idx, wrd in enumerate(wrd_lst):
          if wrd in combined_labels:
              if is_entity:
                  phrase_lst = []
                  num_illegal_assignments += 1
              is_entity = True
              entity_tag = wrd
          elif wrd == "SEP":
              if is_entity:
                  if len(phrase_lst) > 0:
                      if "FILL" in phrase_lst:
                          phrase_lst.remove("FILL")
                      if label_F1 is True:
                          label_lst.append((entity_tag, "phrase"))
                      else:
                          label_lst.append(
                              (entity_tag, " ".join(phrase_lst))
                          )
                  else:
                      num_illegal_assignments += 1
                  phrase_lst = []
                  is_entity = False
              else:
                  num_illegal_assignments += 1
  
          else:
              if is_entity:
                  phrase_lst.append(wrd)
  
      return make_distinct(label_lst)
  
file_path: espnet/egs2/slue-voxpopuli/slu1/local/score.py
imports: import argparse
  import json
  import os
  import re
  import sys
  import eval_utils
  import pandas
label_desc: Use image node_id 3 for calling a global function with example usage: process_line(line, label_F1) and returns: make_distinct