def METHOD_NAME(context, request):
    '''Cart manager page context object generation'''
    userid = get_userid(request)
    is_admin = 'group.admin' in request.effective_principals
    blocked_statuses = ['deleted'] if not is_admin else []
    user_carts = get_cart_objects_by_user(request, userid, blocked_statuses)
    # Calculate the element count in each cart, but remove the elements
    # themselves as this list can be huge.
    for c in user_carts:
        c['element_count'] = len(c['elements'])
        del c['elements']
    result = {
        '@id': '/cart-manager/',
        '@type': ['cart-manager'],
        'title': 'Cart',
        'facets': [],
        '@graph': user_carts,
        'columns': OrderedDict(),
        'notification': '',
        'filters': [],
        'cart_user_max': CART_ADMIN_MAX if is_admin else CART_USER_MAX
    }
    return result