code: def get_match_text_dict(match_dict, end2end_info, break_token=" "):
      match_text_dict = dict()
      for master_index, end2end_index_list in match_dict.items():
          text_list = [
              end2end_info[end2end_index]["text"]
              for end2end_index in end2end_index_list
          ]
          text_list = reduce_repeat_bb(text_list, break_token)
          text = break_token.join(text_list)
          match_text_dict[master_index] = text
      return match_text_dict
  
imports: import os
  import re
  import cv2
  import glob
  import copy
  import math
  import pickle
  import numpy
  from shapely.geometry import Polygon, MultiPoint
label_desc: Use image node_id 22 for calling a global function with example usage: get_match_text_dict(match_dict, end2end_info, break_token) and returns: match_text_dict