code: def test_find_stack_level(mock_warn: MagicMock) -> None:
      assert warn.find_stack_level() == 1
  
      warn.warn("test")
      assert mock_warn.call_count == 1
      assert mock_warn.call_args[1] == {"stacklevel": 2}
  
      dep.deprecated((1, 2, 3), old="foo", new="bar", extra="baz")
      assert mock_warn.call_count == 2
      assert mock_warn.call_args[1] == {"stacklevel": 3}
  
imports: from __future__ import annotations
  import pytest
  from unittest.mock import MagicMock, patch
  import bokeh.util.deprecation
  import bokeh.util.warnings
label_desc: Use image node_id 1 for calling a global function with example usage: test_find_stack_level(mock_warn) without return types