@staticmethod
def failure_node_name(flow_name, failure_node):
    """Create a failure node name representation for generated Python config.

        :param flow_name: name of flow for which the representation should be created
        :param failure_node: a node from graph of all failure permutations
        :return: variable name
        :rtype: str
        """
    return '_%s_fail_%s' % (flow_name, '_'.join(failure_node.traversed))
