pub fn validate_splits_not_empty<T>( splits: &[T], ) -> Result<(), (StatusCode, Json<Value>)>
Validate that splits are not empty