def filter_with_schema(self, collection=None, context=None):
if collection is None or self.schema is None:<EOL><INDENT>return<EOL><DEDENT>try:<EOL><INDENT>for item in collection:<EOL><INDENT>self._schema.filter(<EOL>model=item,<EOL>context=context if self.use_context else None<EOL>)<EOL><DEDENT><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT>
Perform collection items filtering with schema