pub fn test_inf_handling<F>(predict: F) -> EdgeCaseResultwhere F: Fn(&[f32]) -> Result<Vec<f32>, String>,
Test if a function handles Infinity inputs gracefully