code: def filter_records(self, records):
          
          for record in records:
              try:
                  filtered = self.filter_record(record)
                  assert (filtered)
                  # Quick tracking whether the sequence was modified
                  if filtered.seq == record.seq:
                      self.passed_unchanged += 1
                  else:
                      self.passed_changed += 1
                  yield filtered
              except FailedFilter as e:
                  self.failed += 1
                  v = e.value
                  if self.listener:
                      self.listener(
                          'failed_filter',
                          record,
                          filter_name=self.name,
                          value=v)
docs: Apply the filter to records