code: def decode_jwt(
      bearer_token: Text, jwt_key: Text, jwt_algorithm: Text
  ) -> Dict:
      """Decodes a Bearer Token using the specific JWT key and algorithm.
  
      Args:
          bearer_token: Encoded Bearer token
          jwt_key: Public JWT key for decoding the Bearer token
          jwt_algorithm: JWT algorithm used for decoding the Bearer token
  
      Returns:
          `Dict` containing the decoded payload if successful or an exception
          if unsuccessful
      """
      authorization_header_value = bearer_token.replace(
          BEARER_TOKEN_PREFIX, ""
      )
      return jwt.decode(
          authorization_header_value, jwt_key, algorithms=jwt_algorithm
      )
  
imports: import json
  import logging
  import uuid
  import jwt
  from sanic import Sanic, Blueprint
  from sanic.request import Request
  from typing import Text, List, Dict, Any, Optional, Callable, Iterable, Awaitable, NoReturn
  from rasa.cli import utils
  from rasa.shared.constants import DOCS_BASE_URL, DEFAULT_SENDER_ID
  from rasa.core.constants import BEARER_TOKEN_PREFIX
  from rasa.shared.exceptions import RasaException
label_desc: Use image node_id 2 for calling a global function with example usage: decode_jwt(bearer_token, jwt_key, jwt_algorithm) and returns: jwt