code: def get_payload(
      event_properties: EventMeta,
      session_id: str = Provide[BentoMLContainer.session_id],
  ) -> t.Dict[str, t.Any]:
      return TrackingPayload(
          session_id=session_id,
          common_properties=CommonProperties(),
          event_properties=event_properties,
          event_type=event_properties.event_name,
      ).to_dict()
  
imports: from __future__ import annotations
  import contextlib
  import logging
  import os
  import secrets
  import threading
  import typing
  from datetime import datetime
  from datetime import timezone
  from functools import lru_cache
  from functools import wraps
  from typing import TYPE_CHECKING
  import attr
  import httpx
  from simple_di import Provide
  from simple_di import inject
  from ...configuration import get_debug_mode
  from ...configuration.containers import BentoMLContainer
  from ...utils import compose
  from .schemas import CommonProperties
  from .schemas import EventMeta
  from .schemas import ServeInitEvent
  from .schemas import ServeUpdateEvent
  from .schemas import TrackingPayload
label_desc: Use image node_id 6 for calling a global function with example usage: get_payload(event_properties, session_id) and returns: TrackingPayload