code: def check_doc(terms):
      """Check doc content."""
      folders_to_skip = [
          "_build",
          "binder",
          "changes",
          "images",
          "includes",
          "logos",
          "modules",
          "sphinxext",
          "templates",
          "themes",
      ]
  
      print("\n\nCheck .rst files in doc\n")
  
      files_to_skip = ["conf.py", "index.rst", "glossary.rst"]
  
      doc_folder = root_dir() / "doc"
  
      files = list(doc_folder.glob("*.rst"))
      for folder in doc_folder.glob("*"):
          if folder.is_dir() and folder.name not in folders_to_skip:
              files.extend(
                  f for f in folder.glob("*.rst") if f is not None
              )
  
      count = check_files(files, terms, files_to_skip)
  
      print(f"\n\nTotal: {count} terms not linked to glossary\n")
  
file_path: nilearn/maint_tools/check_glossary_term.py
imports: from __future__ import annotations
  import ast
  from pathlib import Path
  from docstring_parser import parse
  from docstring_parser.common import DocstringStyle
  from rich import print
label_desc: Use image node_id 10 for calling a global function with example usage: check_doc(terms) without return types