code: def inverseDict(d):
      """
      Returns a dictionay indexed by values {value_k:key_k}
      Parameters:
      -----------
              d : dictionary
      """
      dt = {}
      for k, v in list(d.items()):
          if type(v) in (list, tuple):
              for i in v:
                  dt[i] = k
          else:
              dt[v] = k
      return dt
  
imports: import pickle
  import six
  import copy
label_desc: Use image node_id 11 for calling a global function with example usage: inverseDict(d) and returns: dt