code: def create_node(env, relative_path, show_button):
      """
      Creates documentation node for example include.
  
      :param env: environment of the documentation
      :param relative_path: path of the code
      :param show_button: whether to show "view code" button
      :return paragraph with the node
      """
      pagename = "_modules/" + relative_path[:-3]
  
      header_classes = ["example-header"]
      if show_button:
          header_classes += ["example-header--with-button"]
      paragraph = nodes.paragraph(relative_path, classes=header_classes)
      paragraph += nodes.inline(
          "", relative_path, classes=["example-title"]
      )
      if show_button:
          pending_ref = viewcode_anchor(
              reftarget=pagename,
              refid="",
              refdoc=env.docname,
              classes=["example-header-button viewcode-button"],
          )
          pending_ref += nodes.inline("", _("View Source"))
          paragraph += pending_ref
  
      return paragraph
  
imports: from __future__ import annotations
  import os
  import traceback
  from docutils import nodes
  from docutils.parsers.rst import directives
  from sphinx.directives.code import LiteralIncludeReader
  from sphinx.ext.viewcode import viewcode_anchor
  from sphinx.locale import _
  from sphinx.pycode import ModuleAnalyzer
  from sphinx.util import logging, parselinenos
  from sphinx.util.docutils import SphinxDirective
  from sphinx.util.nodes import set_source_info
label_desc: Use image node_id 2 for calling a global function with example usage: create_node(env, relative_path, show_button) and returns: paragraph