def node_outside_selection(node, formatting_config):
    """
    Contrary to ``node_within_lines`` it just checks if node is fully outside selected lines.
    Partial selection is useful for transformers like aligning code.
    """
    if formatting_config.start_line and formatting_config.start_line > node.end_lineno or \
            formatting_config.end_line and formatting_config.end_line < node.lineno:
        return True
    return False