def filter_collections(self, model, context=None):
if model is None:<EOL><INDENT>return<EOL><DEDENT>for property_name in self.collections:<EOL><INDENT>prop = self.collections[property_name]<EOL>collection = self.get(model, property_name)<EOL>filtered_value = prop.filter(<EOL>value=collection,<EOL>model=model,<EOL>context=context<EOL>)<EOL>self.set(model, property_name, filtered_value)<EOL>prop.filter_with_schema(<EOL>collection,<EOL>context if prop.use_context else None<EOL>)<EOL><DEDENT>
Filter collections
Runs filters on collection properties changing them in place.
:param model:  object or dict
:param context: object, dict or None
:return: None