code: def texinfo_visit_inheritance_diagram(
      self: TexinfoTranslator,
      node: inheritance_diagram,
  ) -> None:
      """
      Output the graph for Texinfo.  This will insert a PNG.
      """
      graph = node["graph"]
  
      graph_hash = get_graph_hash(node)
      name = "inheritance%s" % graph_hash
  
      dotcode = graph.generate_dot(
          name, env=self.builder.env, graph_attrs={"size": '"6.0,6.0"'}
      )
      render_dot_texinfo(self, node, dotcode, {}, "inheritance")
      raise nodes.SkipNode
  
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 6 for calling a global function with example usage: texinfo_visit_inheritance_diagram(node) without return types