code: def group_by_kind(items):
      collated = {kind: [] for kind in _KIND}
      for item in items:
          try:
              collated[item.kind].append(item)
          except KeyError:
              raise ValueError(f"unsupported kind in {item!r}")
      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 16 for calling a global function with example usage: group_by_kind(items) and returns: collated