code: def test_get_payload(
      event_properties: analytics.schemas.ModelSaveEvent,
  ):
      payload = analytics.usage_stats.get_payload(
          event_properties=event_properties,
          session_id="random_session_id",
      )
      assert SCHEMA.validate(payload)
  
imports: from __future__ import annotations
  import logging
  import typing
  from typing import TYPE_CHECKING
  from unittest.mock import Mock
  from unittest.mock import patch
  import pytest
  from prometheus_client.parser import text_string_to_metric_families
  from schema import And
  from schema import Or
  from schema import Schema
  import bentoml
  from bentoml._internal.utils import analytics
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_payload(event_properties) without return types