parameters: (lf, rf)
return_statement: return keep
docstring: Creates a filter that keeps the union of two filters.
  
    Args:
      lf: first filter
      rf: second filter
  
    Returns:
      A filter function that keeps the n largest paths.
docstring_summary: Creates a filter that keeps the union of two filters.
docstring_tokens: Creates a filter that keeps the union of two filters .
function: def union(lf, rf):
    """Creates a filter that keeps the union of two filters.
  
    Args:
      lf: first filter
      rf: second filter
  
    Returns:
      A filter function that keeps the n largest paths.
    """
    def keep(paths):
      l = set(lf(paths))
      r = set(rf(paths))
      return sorted(list(l|r))
    return keep
function_tokens: def union ( lf , rf ) : def keep ( paths ) : l = set ( lf ( paths ) ) r = set ( rf ( paths ) ) return sorted ( list ( l | r ) ) return keep