def find_groups(context, node):
    """
    Returns a list of all groups that contain the node.
    """
    
    groups = []
    for group in context.modeling.instance.groups.itervalues():
        if node.id in group.member_node_ids:
            groups.append(group)
    return groups