code: def hash_dict(dictionary, ignored_keys=None):
      """
      Hash a python dictionary to a hexadecimal string.
      http://stackoverflow.com/questions/5884066/hashing-a-python-dictionary
      """
      dictionary = dict(dictionary)  # copy dictionary
      for key in ignored_keys or []:
          del dictionary[key]
      return hashlib.md5(
          repr(sorted(dictionary.items())).encode("utf8")
      ).hexdigest()
  
imports: from __future__ import absolute_import, unicode_literals
  import base64
  import hashlib
  import json
  import logging
  import os
  import pickle
  from builtins import str
  import numpy
  from atm.compat import getargs
label_desc: Use image node_id 1 for calling a global function with example usage: hash_dict(dictionary, ignored_keys) and returns: hashlib