code: def get_session_id(token: str) -> ID:
      """Extracts the session id from a JWT token.
  
      Args:
          token (str):
              A JWT token containing the session_id and other data.
  
      Returns:
         str
      """
      decoded = json.loads(_base64_decode(token.split(".")[0]))
      return decoded["session_id"]
  
imports: from __future__ import annotations
  import logging
  import base64
  import calendar
  import codecs
  import datetime
  import hashlib
  import hmac
  import json
  import time
  import zlib
  from typing import TYPE_CHECKING, Any
  from ..core.types import ID
  from ..settings import settings
  from .warnings import warn
label_desc: Use image node_id 4 for calling a global function with example usage: get_session_id(token) and returns: decoded