code: def test_force() -> None:
      results = []
      seq = (x for x in ["foo", "bar", "baz"])
      w = bd.force(_collector(results), seq)
      w()
      assert results == ["foo"]
      w()
      assert results == ["foo", "bar"]
      w()
      assert results == ["foo", "bar", "baz"]
  
file_path: bokeh/tests/unit/bokeh/test_driving.py
imports: from __future__ import annotations
  import pytest
  from numpy.testing import assert_allclose
  from tests.support.util.api import verify_all
  import bokeh.driving
label_desc: Use image node_id 5 for calling a global function with example usage: test_force() without return types