code: def fmt_brief(analysis):
      # XXX Support sorting.
      items = sorted(analysis)
      for kind in KINDS:
          if kind is KIND.STATEMENT:
              continue
          for item in items:
              if item.kind is not kind:
                  continue
              yield from item.render("brief")
      yield f"  total: {len(items)}"
  
imports: import io
  import logging
  import os
  import os.path
  import re
  import sys
  from c_common import fsutil
  from c_common.logging import VERBOSITY, Printer
  from c_common.scriptutil import add_verbosity_cli, add_traceback_cli, add_sepval_cli, add_progress_cli, add_files_cli, add_commands_cli, process_args_by_key, configure_logger, get_prog, filter_filenames
  from c_parser.info import KIND
  from .match import filter_forward
  from .None import analyze, datafiles, check_all
label_desc: Use image node_id 6 for calling a global function with example usage: fmt_brief(analysis) without return types