code: def _validate_filters(cls, filters):
          
          for k in iterkeys(filters):
              if k not in cls.filters:
                  # Mirror "unexpected keyword argument" message:
                  raise TypeError("%s got an unsupported filter type '%s'" %
                                  (cls.__name__, k))
docs: Raise a TypeError if ``filters`` contains any keys inappropriate to
          this event class.