code: def compare_keys(old_dict, new_dict):
      not_in_new = list(set(old_dict.keys()) - set(new_dict.keys()))
      in_both = list(set(old_dict.keys()) & set(new_dict.keys()))
      not_in_old = list(set(new_dict.keys()) - set(old_dict.keys()))
      return not_in_new, in_both, not_in_old
  
imports: from collections import defaultdict
label_desc: Use image node_id 1 for calling a global function with example usage: compare_keys(old_dict, new_dict) and returns: not_in_new,  in_both,  not_in_old