code: def dict_hash(dct):
      """Return a hash of the contents of a dictionary"""
      serialized = json.dumps(dct, sort_keys=True)
  
      try:
          m = hashlib.sha256(serialized)[:32]
      except TypeError:
          m = hashlib.sha256(serialized.encode())[:32]
  
      return m.hexdigest()
  
file_path: altair/sphinxext/utils.py
imports: import ast
  import hashlib
  import itertools
  import json
  import re
label_desc: Use image node_id 6 for calling a global function with example usage: dict_hash(dct) and returns: m