code: def load_mwt_dict(filename):
      if filename is not None:
          with open(filename, "r") as f:
              mwt_dict0 = json.load(f)
  
          mwt_dict = dict()
          for item in mwt_dict0:
              (key, expansion), count = item
  
              if key not in mwt_dict or mwt_dict[key][1] < count:
                  mwt_dict[key] = (expansion, count)
  
          return mwt_dict
      else:
          return
  
imports: from collections import Counter
  from copy import copy
  import json
  import numpy
  import re
  import logging
  import os
  from torch.utils.data import DataLoader
  import stanza.utils.default_paths
  from stanza.models.common.utils import ud_scores, harmonic_mean
  from stanza.models.common.doc import Document
  from stanza.utils.conll import CoNLL
  from stanza.models.common.doc import *
  from stanza.models.tokenization.data import SortedDataset
label_desc: Use image node_id 4 for calling a global function with example usage: load_mwt_dict(filename) and returns: mwt_dict