code: def test_lifecycle_bad_session_created_signature(self) -> None:
      result: dict[str, Handler] = {}
  
      def load(filename: str):
          handler = bahs.ServerLifecycleHandler(filename=filename)
          result["handler"] = handler
  
      with_file_contents(
          """
  def on_session_created(a,b):
      pass
  """,
          load,
      )
  
      handler = result["handler"]
      assert handler.error is not None
      assert (
          "on_session_created must have signature func(session_context)"
          in handler.error
      )
      assert "func(a, b)" in handler.error
  
file_path: bokeh/tests/unit/bokeh/application/handlers/test_server_lifecycle.py
imports: from __future__ import annotations
  import pytest
  from bokeh.application.handlers.handler import Handler
  from bokeh.document import Document
  from tests.support.util.filesystem import with_file_contents
  import bokeh.application.handlers.server_lifecycle
label_desc: Use image node_id 5 for calling the Test_ServerLifecycleHandler obj's underlying member method code with example usage: obj.test_lifecycle_bad_session_created_signature() without return types