code: def compare_dict(dict_1, dict_2):
      """Compares two dictionaries."""
      # N.B: Taken from stackoverflow:
      # http://stackoverflow.com/questions/4527942/comparing-two-dictionaries-in-python
      dict_1_keys = set(dict_1.keys())
      dict_2_keys = set(dict_2.keys())
      intersect_keys = dict_1_keys.intersection(dict_2_keys)
      added = dict_1_keys - dict_2_keys
      removed = dict_2_keys - dict_1_keys
      modified = {
          o: (dict_1[o], dict_2[o])
          for o in intersect_keys
          if dict_1[o] != dict_2[o]
      }
      same = set(o for o in intersect_keys if dict_1[o] == dict_2[o])
      return added, removed, modified, same
  
file_path: dragonfly/dragonfly/utils/ancillary_utils.py
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: compare_dict(dict_1, dict_2) and returns: added,  removed,  modified,  same