code: def test__advance() -> None:
      results = []
      testf = _collector(results)
      s = bd._advance(testf)
      next(s)
      assert results == [0]
      next(s)
      assert results == [0, 1]
      next(s)
      assert results == [0, 1, 2]
      next(s)
      assert results == [0, 1, 2, 3]
  
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 9 for calling a global function with example usage: test__advance() without return types