human
Can you provide a the Python code you requested given the following:
Complete the below
def _has_access_error_desc(user, action, descriptor, course_key):

    ''''Only staff should see error descriptors.
    Valid actions:
    \'load\' -- load this descriptor, showing it to the user.
    \'staff\' -- staff access to descriptor.'
    '''
assistant
#Here is the Python code you requested.
    def check_for_staff():
        return _has_staff_access_to_descriptor(user, descriptor, course_key)
    checkers = {'load': check_for_staff, 'staff': check_for_staff, 'instructor': (lambda : _has_instructor_access_to_descriptor(user, descriptor, course_key))}
    return _dispatch(checkers, action, user, descriptor)