human
Give me a the Python code you requested given the following:
Complete the below
def get_or_empty_db_cart(cart_queryset=Cart.objects.all()):

    ''''Get cart if exists. Prevents creating empty carts in views which not
    need it
    :type cart_queryset: saleor.cart.models.CartQueryset'
    '''
assistant
#Here is the Python code you requested.
    def get_cart(view):
        @wraps(view)
        def func(request, *args, **kwargs):
            cart = get_cart_from_request(request, cart_queryset)
            return view(request, cart, *args, **kwargs)
        return func
    return get_cart