code: def filter_by_kind(items, kind):
      if kind == "type":
          kinds = _KIND._TYPE_DECLS
      elif kind == "decl":
          kinds = _KIND._TYPE_DECLS
      try:
          okay = kind in _KIND
      except TypeError:
          kinds = set(kind)
      else:
          kinds = {kind} if okay else set(kind)
      for item in items:
          if item.kind in kinds:
              yield item
  
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 14 for calling a global function with example usage: filter_by_kind(items, kind) without return types