code: def dict_hash(d, typ, exclude=()):
      filtered = dict_filter(d, exclude)
      byts = json.dumps(filtered, sort_keys=True).encode("utf-8")
      return bytes_hash(byts, typ)
  
imports: import hashlib
  import json
  import os
  import re
  import sys
  from typing import TYPE_CHECKING, Dict, Iterable, Iterator, List, Optional, Tuple
  import colorama
label_desc: Use image node_id 3 for calling a global function with example usage: dict_hash(d, typ, exclude) and returns: bytes_hash