code: def load_word_num_dict(phrases, word_num_dict):
      for sentence, _ in phrases:
          words = sentence.split(" ")
          for cur_word in words:
              word = cur_word.strip()
              word_num_dict[word] += 1
      return word_num_dict
  
imports: import logging
  import os
  import pickle
  from collections import Counter
  import numpy
  import torch
  from torch.utils import data
label_desc: Use image node_id 8 for calling a global function with example usage: load_word_num_dict(phrases, word_num_dict) and returns: word_num_dict