code: def test_destroyed(self) -> None:
      class FakeSession:
          destroyed = False
  
      ac = bsc.ApplicationContext("app", io_loop="ioloop")
      sc = bsc.BokehServerContext(ac)
      c = bsc.BokehSessionContext("id", sc, "doc")
      sess = FakeSession()
      c._session = sess
      assert not c.destroyed
      sess.destroyed = True
      assert c.destroyed
  
file_path: bokeh/tests/unit/bokeh/server/test_contexts.py
imports: from __future__ import annotations
  import pytest
  import asyncio
  import gc
  from tornado.ioloop import IOLoop
  from bokeh.application import Application
  import bokeh.server.contexts
label_desc: Use image node_id 2 for calling the TestBokehSessionContext obj's underlying member method code with example usage: obj.test_destroyed() without return types