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

    """Ensure the specified feature is turned on.  Return an HTTP 400 code if not.
    """
    def _check_feature_enabled(view_func):
        def _decorator(request, *args, **kwargs):
            if (not settings.FEATURES.get(feature_name, False)):
                return HttpResponseBadRequest()
            return view_func(request, *args, **kwargs)
        return wraps(view_func)(_decorator)
    return _check_feature_enabled