code: def sessions(self) -> list[ServerSession]:
      result: list[ServerSession] = []
      context = self.application_context
      if context:
          for session in context.sessions:
              result.append(session)
      return result
  
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 3 for calling the BokehServerContext obj's underlying member method code with example usage: obj.sessions() and returns: result