pub fn medium_ad_with_kernel( input: &MediumAdInput<'_>, kernel: Kernel, ) -> Result<MediumAdOutput, MediumAdError>