code: def main():
      """Check code and doc for terms not linked to glossary."""
      terms = get_terms_in_glossary()
      print(terms)
  
      check_doc(terms)
  
      check_examples(terms)
  
      print("\n\nCheck .py files in nilearn\n")
  
      modules = (root_dir() / "nilearn").glob("**/*.py")
  
      files_to_skip = ["test_", "conftest.py", "_"]
  
      for file in modules:
          if any(file.name.startswith(s) for s in files_to_skip):
              continue
          if file.parent.name.startswith("_"):
              continue
  
          with open(file) as f:
              module = ast.parse(f.read())
  
          check_functions(module.body, terms, file)
  
          class_definitions = [
              node
              for node in module.body
              if isinstance(node, ast.ClassDef)
          ]
  
          for class_def in class_definitions:
              docstring = ast.get_docstring(class_def)
              docstring = parse(
                  docstring, style=DocstringStyle.NUMPYDOC
              )
  
              if text := check_description(docstring, terms):
                  print(
                      f"class '{class_def.name}' in {file}:{class_def.lineno}"
                  )
                  print(text)
              check_functions(class_def.body, terms, file)
  
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 12 for calling a global function with example usage: main() without return types