pub fn pattern_with_kernel( input: &PatternInput<'_>, kernel: Kernel, ) -> Result<PatternOutput, PatternError>