def METHOD_NAME(acl, roles, key_name):
    new_acl = {"visible_categories": [], "browseable_categories": [], "categories": {}}
    new_acl.update(acl)
    roles = get_categories_roles(roles)
    for category in Category.objects.all_categories():
        build_category_acl(new_acl, category, roles, key_name)
    return new_acl