code: def check_description(docstring, terms):
      """Check docstring description."""
      text = ""
      if docstring.short_description is not None:
          if tmp := [
              term
              for term in terms
              if check_string(docstring.short_description, term)
          ]:
              text += (
                  f" terms: '{', '.join(tmp)}' in short description\n"
              )
  
      if docstring.long_description is not None:
          if tmp := [
              term
              for term in terms
              if check_string(docstring.long_description, term)
          ]:
              text += (
                  f" terms: '{', '.join(tmp)}' in long description\n"
              )
  
      return 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 8 for calling a global function with example usage: check_description(docstring, terms) and returns: text