code: def test_tags_with_string() -> None:
      cases = {
          "foo": 2,
          "bar": 1,
      }
  
      for tag, count in cases.items():
          res = list(q.find(plot.references(), dict(tags=tag)))
          assert len(res) == count
  
file_path: bokeh/tests/unit/bokeh/core/test_query.py
imports: from __future__ import annotations
  import pytest
  from bokeh.models import Axis, BoxZoomTool, ColumnDataSource, DatetimeAxis, Glyph, GlyphRenderer, Grid, Line, LinearAxis, LogAxis, PanTool, Plot, Range1d, Rect, ResetTool, SaveTool, Scatter, Tool, WheelZoomTool
  import bokeh.core.query
label_desc: Use image node_id 4 for calling a global function with example usage: test_tags_with_string() without return types