code: def match(cls, pattern, inverse=False):
          
          string_pattern = pattern
          invert_search = inverse
  
          class DefinedStringFilter(cls):
              pattern = string_pattern
              inverse = invert_search
          return DefinedStringFilter
docs: Factory method to create a StringFilter which filters with the given pattern.