def METHOD_NAME(self, value: dict):
    event_type = value["type"]
    if event_type != Event.Type.ACKNOWLEDGE:
        raise serializers.ValidationError(
            f"'{event_type}' is not a valid event type for acknowledgements."
            f" Use '{Event.Type.ACKNOWLEDGE}' or omit 'type' completely."
        )
    return value