def is_valid_filter(self, filter):
    '\n            Validate if the provided filter is a valid MongoEngine filter\n\n            :param filter:\n                Filter object\n        '
    return isinstance(filter, BaseMongoEngineFilter)
Validate if the provided filter is a valid MongoEngine filter

:param filter:
    Filter object
def is_valid_filter(self, filter):
    '\n            Validate if the provided filter is a valid MongoEngine filter\n\n            :param filter:\n                Filter object\n        '
    return isinstance(filter, BaseMongoEngineFilter)