code: def parse_event(
      event_data: tuple[str, dict[str, Any]]
  ) -> dict[str, Any]:
      event_id = event_data[0]
      event_payload = event_data[1]["data"]
      return {"id": event_id, **json.loads(event_payload)}
  
imports: import json
  import logging
  import uuid
  from typing import Any, Literal, Optional
  import jwt
  import redis
  from flask import Flask, request, Request, Response, session
  from superset.utils.core import get_user_id
label_desc: Use image node_id 2 for calling a global function with example usage: parse_event(event_data) and returns: dict