code: def group_by_kinds(items):
      # Collate into kind groups (decl, type, etc.).
      collated = {_KIND.get_group(k): [] for k in _KIND}
      for item in items:
          group = _KIND.get_group(item.kind)
          collated[group].append(item)
      return collated
  
file_path: cpython/Tools/c-analyzer/c_parser/match.py
imports: import re
  from .None import info
  from .parser._regexes import SIMPLE_TYPE
label_desc: Use image node_id 17 for calling a global function with example usage: group_by_kinds(items) and returns: collated