code: def accept(self, item):
          
          accept = self.filter(item)
          if accept and self.item_limit is not None:
              if self.item_limit > 0:
                  self.item_limit -= 1
              elif self.strict:
                  return False
          return accept
docs: Apply the filter and item_limit, and return True to accept