code: def _get_slots_map(utterance, slot_string):
      values = slot_string.split(" ")
      cleaned = re.sub(r"[^\w\s]", "", utterance)
      words = cleaned.split(" ")
      result = {}
      for i in range(len(words)):
          if values[i] != "O":
              result[values[i]] = words[i]
      return result
  
imports: import parlai.core.build_data
  from parlai.core.build_data import DownloadableFile
  import csv
  from itertools import islice
  from pathlib import Path
  import os
  import json
  import re
  import tqdm
label_desc: Use image node_id 7 for calling a global function with example usage: _get_slots_map(utterance, slot_string) and returns: result