code: def check_functions(body, terms, file):
      """Check functions of a module or methods of a class."""
      function_definitions = [
          node for node in body if isinstance(node, ast.FunctionDef)
      ]
      for f in function_definitions:
          if f.name.startswith("_"):
              continue
  
          docstring = ast.get_docstring(f)
          if text := check_docstring(docstring, terms):
              print(f"function '{f.name}' in {file}:{f.lineno}")
              print(text)
  
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 9 for calling a global function with example usage: check_functions(body, terms, file) without return types