code: def get_graph_hash(node: inheritance_diagram) -> str:
      encoded = (node["content"] + str(node["parts"])).encode()
      return hashlib.md5(encoded, usedforsecurity=False).hexdigest()[
          -10:
      ]
  
imports: from __future__ import annotations
  import builtins
  import hashlib
  import inspect
  import re
  from collections.abc import Iterable, Sequence
  from importlib import import_module
  from os import path
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.parsers.rst import directives
  import sphinx
  from sphinx import addnodes
  from sphinx.ext.graphviz import figure_wrapper, graphviz, render_dot_html, render_dot_latex, render_dot_texinfo
  from sphinx.util.docutils import SphinxDirective
label_desc: Use image node_id 3 for calling a global function with example usage: get_graph_hash(node) and returns: hashlib