@staticmethod
def construct_condition_name(failure_node, idx):
    """Construct condition name that will be used in case of conditional fallbacks.

        :param failure_node: failure node for which the condition name should be constructed
        :param idx: index of condition that should be printed (could be multiple fallbacks with same source and dst)
        :return: string representation of constructed condition name as stated in the generated python code
        """
    return '_{flow}_{src}_f_{dest}_{idx}'.format(flow=failure_node.flow.
        name, src='_'.join(failure_node.traversed), dest='_'.join(
        failure_node.fallbacks[idx]), idx=idx)
