def METHOD_NAME(
    event_name: str,
    properties: StrAny,
    context: StrAny
) -> DictStrAny:
    """Compose a valid payload for the segment API.
    Args:
        event_name: Name of the event.
        properties: Values to report along the event.
        context: Context information about the event.
    Returns:
        Valid segment payload.
    """
    return {
        "anonymousId": get_anonymous_id(),
        "event": event_name,
        "properties": properties,
        "context": context,
    }