human
Here's a good function header given the following:
I wrote the below code

    def decorate(request, *args, **kwargs):
        if (not has_write_access(request.user)):
            raise PopupException(_('You    are    not    allowed    to    modify    the    metastore.'), detail=_('You    have    must    have    metastore:write    permissions'), error_code=301)
        return view_func(request, *args, **kwargs)
    return wraps(view_func)(decorate)

What's a good function header?
assistant
#Here's a good function header.

def check_has_write_access_permission(view_func):