def wrap_filters(filters):
  def combined_filter(x):
    for filt in filters:
      if not filt(x):
        return False
    return True
  return combined_filter
Returns a single filter that short-circuit ANDs the specified filters.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/util/filtering.py/wrap_filters