def _get_break_loop_node(break_node):
    '\n    Returns the loop node that holds the break node in arguments.\n\n    Args:\n        break_node (astroid.Break): the break node of interest.\n\n    Returns:\n        astroid.For or astroid.While: the loop node holding the break node.\n    '
    loop_nodes = (astroid.For, astroid.While)
    parent = break_node.parent
    while ((not isinstance(parent, loop_nodes)) or (break_node in getattr(parent, 'orelse', []))):
        break_node = parent
        parent = parent.parent
        if (parent is None):
            break
    return parent
Returns the loop node that holds the break node in arguments.

Args:
    break_node (astroid.Break): the break node of interest.

Returns:
    astroid.For or astroid.While: the loop node holding the break node.
def _get_break_loop_node(break_node):
    '\n    Returns the loop node that holds the break node in arguments.\n\n    Args:\n        break_node (astroid.Break): the break node of interest.\n\n    Returns:\n        astroid.For or astroid.While: the loop node holding the break node.\n    '
    loop_nodes = (astroid.For, astroid.While)
    parent = break_node.parent
    while ((not isinstance(parent, loop_nodes)) or (break_node in getattr(parent, 'orelse', []))):
        break_node = parent
        parent = parent.parent
        if (parent is None):
            break
    return parent