code: def dict_hash(dct):
      """Return a hash of the contents of a dictionary"""
      dct_s = json.dumps(dct, sort_keys=True)
  
      try:
          m = md5(dct_s)
      except TypeError:
          m = md5(dct_s.encode())
  
      return m.hexdigest()
  
file_path: pdvega/doc/sphinxext/pdvega_ext/utils.py
imports: import ast
  import json
  import importlib
  from hashlib import md5
  from itertools import tee, chain
label_desc: Use image node_id 1 for calling a global function with example usage: dict_hash(dct) and returns: m