human
Complete the below
def class_result(classname):

    ''''Errcheck function. Returns a function that creates the specified class.'
    '''
assistant
#Here is the Python program you requested.
    def wrap_errcheck(result, func, arguments):
        if (result is None):
            return None
        return classname(result)
    return wrap_errcheck