def _add_combined_condition_to_template(self, template_dict, condition_name, conditions_to_combine):
<EOL>if not conditions_to_combine or len(conditions_to_combine) < <NUM_LIT:2>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>template_conditions = template_dict.setdefault('<STR_LIT>', {})<EOL>new_template_conditions = make_combined_condition(sorted(list(conditions_to_combine)), condition_name)<EOL>for name, definition in new_template_conditions.items():<EOL><INDENT>template_conditions[name] = definition<EOL><DEDENT>
Add top-level template condition that combines the given list of conditions.

:param dict template_dict: SAM template dictionary
:param string condition_name: Name of top-level template condition
:param list conditions_to_combine: List of conditions that should be combined (via OR operator) to form
                                   top-level condition.