<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cache_control_expires(num_hours):
 """ Set the appropriate Cache-Control and Expires headers for the given number of hours. """

    num_seconds = int(num_hours * 60 * 60)

    def decorator(func):
        @wraps(func)
        def inner(request, *args, **kwargs):
            response = func(request, *args, **kwargs)
            patch_response_headers(response, num_seconds)
            return response

        return inner

    return decorator