code: def filter(cls, filters, iterable):
      '''Returns the elements in `iterable` that pass given `filters`'''
      if isinstance(filters, Filter):
        filters = [filters]
  
      for filter in filters:
        iterable = filter.generator(iterable)
  
      return iterablf filter(cls, filters, iterable):
      '''Returns the elements in `iterable` that pass given `filters`'''
      if isinstance(filters, Filter):
        filters = [filters]
  
      for filter in filters:
        iterable = filter.generator(iterable)
  
      return iterable
docs: Returns the elements in `iterable` that pass given `filters`