def aggregate_actions(actions):
  """Returns an action that aggregates all actions."""
  rules_to_add = set()
  rules_to_remove = set()
  for action in actions:
    if action:
      rules_to_add |= action.rules_to_add
      rules_to_remove |= action.rules_to_remove
  return action_utils.Action(
      rules_to_add=rules_to_add, rules_to_remove=rules_to_remove)
Returns an action that aggregates all actions.
language/compgen/csl/induction/induction_utils.py