pub fn midpoint_with_kernel( input: &MidpointInput<'_>, kernel: Kernel, ) -> Result<MidpointOutput, MidpointError>