code: def md5_sha_from_dict(
      obj: dict[Any, Any],
      ignore_nan: bool = False,
      default: Optional[Callable[[Any], Any]] = None,
  ) -> str:
      json_data = json.dumps(
          obj, sort_keys=True, ignore_nan=ignore_nan, default=default
      )
  
      return md5_sha_from_str(json_data)
  
imports: import hashlib
  from typing import Any, Callable, Optional
  import simplejson
label_desc: Use image node_id 2 for calling a global function with example usage: md5_sha_from_dict(obj, ignore_nan, default) and returns: md5_sha_from_str