human
Complete the below
def api_access_enabled_or_404(view_func):

    ''''If API access management feature is not enabled, return a 404.'
    '''

What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    @wraps(view_func)
    def wrapped_view(view_obj, *args, **kwargs):
        'Wrapper    for    the    view    function.'
        if ApiAccessConfig.current().enabled:
            return view_func(view_obj, *args, **kwargs)
        return HttpResponseNotFound()
    return wrapped_view