code: def test_sine() -> None:
      results = []
      func = bd.sine(w, A, phi, offset)(_collector(results))
      for i in range(4):
          func()
      assert_allclose(
          results,
          [
              2.2995002499404844,
              3.1682550269259515,
              3.932653061713073,
              4.524412954423689,
          ],
      )
  
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 8 for calling a global function with example usage: test_sine() without return types