code: def find(
      objs: Iterable[Model], selector: SelectorType
  ) -> Iterable[Model]:
      """Query a collection of Bokeh models and yield any that match the
      a selector.
  
      Args:
          obj (Model) : object to test
          selector (JSON-like) : query selector
  
      Yields:
          Model : objects that match the query
  
      Queries are specified as selectors similar to MongoDB style query
      selectors, as described for :func:`~bokeh.core.query.match`.
  
      Examples:
  
          .. code-block:: python
  
              # find all objects with type Grid
              find(p.references(), {'type': Grid})
  
              # find all objects with type Grid or Axis
              find(p.references(), {OR: [
                  {'type': Grid}, {'type': Axis}
              ]})
  
              # same query, using IN operator
              find(p.references(), {'type': {IN: [Grid, Axis]}})
  
      """
      return (obj for obj in objs if match(obj, selector))
  
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Any, Callable, Iterable, Union
  from ..model import Model
label_desc: Use image node_id 1 for calling a global function with example usage: find(objs, selector) and returns: unknown