def METHOD_NAME(f):
  """Negate a filter.
  Args:
    f: filter function to invert
  Returns:
    A filter function that returns the negation of f.
  """
  def keep(paths):
    l = set(paths)
    r = set(f(paths))
    return sorted(list(l-r))
  return keep