code: def __init__(self, application_context: ApplicationContext) -> None:
      self._application_context = weakref.ref(application_context)
  
imports: from __future__ import annotations
  import logging
  import weakref
  from typing import TYPE_CHECKING, Any, Awaitable, Callable, Iterable
  from tornado import gen
  from ..application.application import ServerContext, SessionContext
  from ..document import Document
  from ..protocol.exceptions import ProtocolError
  from ..util.token import get_token_payload
  from .session import ServerSession
label_desc: Use image node_id 1 to create a new BokehServerContext object from inherited base classes: ServerContext with example: obj = BokehServerContext(application_context)