code: def test_websocket_compression_level() -> None:
      app = Application()
      t = bst.BokehTornado(
          {"/": app},
          websocket_compression_level=2,
          websocket_compression_mem_level=3,
      )
      ws_rules = [
          rule
          for rule in t.wildcard_router.rules
          if issubclass(rule.target, WSHandler)
      ]
      assert len(ws_rules) == 1
      ws_rule = ws_rules[0]
      assert ws_rule.target_kwargs.get("compression_level") == 2
      assert ws_rule.target_kwargs.get("mem_level") == 3
  
imports: from __future__ import annotations
  import pytest
  import json
  import logging
  from _util_server import http_get, url
  from tornado.web import StaticFileHandler
  from bokeh.application import Application
  from bokeh.client import pull_session
  from bokeh.core.types import ID
  from bokeh.server.auth_provider import NullAuth
  from bokeh.server.views.static_handler import StaticHandler
  from bokeh.server.views.ws import WSHandler
  from tests.support.plugins.managed_server_loop import MSL
  from tests.support.util.env import envset
  import bokeh.server.tornado
label_desc: Use image node_id 9 for calling a global function with example usage: test_websocket_compression_level() without return types