A Voleon research pipeline uses compact wildcard patterns to classify signal labels. Given a label s and a pattern p, determine whether the entire label matches the entire pattern.
The pattern supports two special characters:
? matches exactly one character.* matches any sequence of characters, including an empty sequence.All other characters match themselves. Return True only when every character in s is matched by the complete pattern p.
Implement is_match(s, p), where s and p are strings, and return a boolean. The inputs contain lowercase English letters, ?, and *. A wildcard may match characters but cannot match only part of a literal character.
def is_match(s, p):