code: def test_document_bad_on_session_destroyed_signature(self) -> None:
      doc = Document()
  
      def destroy(a, b):
          pass
  
      with pytest.raises(ValueError):
          doc.on_session_destroyed(destroy)
  
file_path: bokeh/tests/unit/bokeh/application/handlers/test_document_lifecycle.py
imports: from __future__ import annotations
  import pytest
  import logging
  from bokeh.document import Document
  import bokeh.application.handlers.document_lifecycle
label_desc: Use image node_id 1 for calling the Test_DocumentLifecycleHandler obj's underlying member method code with example usage: obj.test_document_bad_on_session_destroyed_signature() without return types