code: def test_destroy_calls() -> None:
      d = Document()
      s = bss.ServerSession("some-id", d, "ioloop")
      with mock.patch(
          "bokeh.document.modules.DocumentModuleManager.destroy"
      ) as docdm:
          with mock.patch(
              "bokeh.document.Document.remove_on_change"
          ) as docroc:
              s.destroy()
              assert s.destroyed
              docroc.assert_called_with(s)
          docdm.assert_called_once()
  
file_path: bokeh/tests/unit/bokeh/server/test_session__server.py
imports: from __future__ import annotations
  import pytest
  from unittest import mock
  from bokeh.document import Document
  import bokeh.server.session
label_desc: Use image node_id 3 for calling a global function with example usage: test_destroy_calls() without return types