code: def get_match_dict(match_list):
      """
      Convert match_list to a dict, where key is master bbox's index, value is end2end bbox index.
      :param match_list:
      :return:
      """
      match_dict = dict()
      for match_pair in match_list:
          end2end_index, master_index = match_pair[0], match_pair[1]
          if master_index not in match_dict.keys():
              match_dict[master_index] = [end2end_index]
          else:
              match_dict[master_index].append(end2end_index)
      return match_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 19 for calling a global function with example usage: get_match_dict(match_list) and returns: match_dict