

def is_feature_enabled(feature_key, request, default=False):
    if ld_client:
        ip_address = request.META.get('REMOTE_ADDR', 'unknown')
        key = sha1(ip_address).hexdigest()
        user = {
            'key': key,
        }
        return ld_client.toggle(feature_key, user, default)
    return default

dataset/ETHPy150Open apiaryio/polls-api/polls/features.py is_feature_enabled/original