def is_resource_class_collection_attribute(rc, attr_name):
    """
    Checks if the given attribute name is a collection attribute of the given
    registered resource.
    """
    attr = get_resource_class_attribute(rc, attr_name)
    return attr.kind == RESOURCE_ATTRIBUTE_KINDS.COLLECTION