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