docs: def filter(self, model=None, context=None):
          """
          Perform filtering on the model. Will change model in place.
          :param model: object or dict
          :param context: object, dict or None
          :return: None
          """
          if model is None:
              return
  
          # properties
          self.filter_properties(model, context=context)
  
          # entities
          self.filter_entities(model, context=context)
  
          # collections
          self.filter_collections(model, context=context)