code: def add_text(node, text):
      """Add text with inline code to node"""
      is_text = True
      for part in reCode.split(text):
          if part:
              if is_text:
                  node += nodes.Text(part, part)
              else:
                  node += nodes.literal(part, part)
  
          is_text = not is_text
  
      return node
  
imports: import importlib
  import re
  import sys
  import warnings
  from os.path import abspath, dirname
  from docutils import nodes, utils, frontend
  from docutils.parsers.rst import Directive
  from docutils.parsers.rst.directives import flag
  from myst_parser.docutils_ import Parser
  from sphinx import addnodes
  from tools.schemapi.utils import fix_docstring_issues, SchemaInfo
label_desc: Use image node_id 4 for calling a global function with example usage: add_text(node, text) and returns: node