human
Complete this python program:
def _check_throttles_decorator(func):
assistant
#Here is the Python program you requested.

    """Decorator for `APIView.check_throttles`.
    The decorated function will first check model-based config
    to see if rate limiting is disabled; if so, it skips
    the throttle check.  Otherwise, it calls the original
    function to enforce rate-limiting.
    Arguments:
    func (function): The function to decorate.
    Returns:
    The decorated function.
    """
    @wraps(func)
    def _decorated(*args, **kwargs):
        if RateLimitConfiguration.current().enabled:
            return func(*args, **kwargs)
        else:
            msg = 'Rate    limiting    is    disabled    because    `RateLimitConfiguration`    is    not    enabled.'
            LOGGER.info(msg)
            return
    return _decorated