code: def _strip_compound(node):
      if isinstance(node, nodes.compound):
          return _strip_compound(node[0])
      return node
  
file_path: nni/docs/extension/toctree_check.py
imports: import re
  from docutils import nodes
  from sphinx.application import Sphinx
  from sphinx.addnodes import toctree
  from sphinx.util.logging import getLogger
label_desc: Use image node_id 1 for calling a global function with example usage: _strip_compound(node) and returns: node, _strip_compound