def METHOD_NAME(graph, pkg_prefixes):
    """
    Find all nodes that retain classes under the list of :pkg_prefixes.
    """
    query_set = find_nodes_in_packages(graph, pkg_prefixes)
    return find_boundary(graph, query_set)