def in_for_else_branch(parent, stmt):
 return (isinstance(parent, astroid.For) and any((else_stmt.parent_of(stmt) for else_stmt in parent.orelse)))

def in_for_else_branch ( parent , stmt ) : return ( isinstance ( parent , astroid . For ) and any ( ( else_stmt . parent_of ( stmt ) for else_stmt in parent . orelse ) ) )
returns true if stmt in inside the else branch for a parent for stmt .