human
Complete the below
def load_libc_function(func_name, log_error=True, fail_if_missing=False, errcheck=False):

    ''''Attempt to find the function in libc, otherwise return a no-op func.
    :param func_name: name of the function to pull from libc.
    :param log_error: log an error when a function can\'t be found
    :param fail_if_missing: raise an exception when a function can\'t be found.
    Default behavior is to return a no-op function.
    :param errcheck: boolean, if true install a wrapper on the function
    to check for a return values of -1 and call
    ctype.get_errno and raise an OSError'
    '''
assistant
#Here is Python program to find the function in libc, otherwise return a no-op func.
    try:
        libc = ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True)
        func = getattr(libc, func_name)
    except AttributeError:
        if fail_if_missing:
            raise
        if log_error:
            logging.warning(_('Unable    to    locate    %s    in    libc.        Leaving    as    a    no-op.'), func_name)
        return noop_libc_function
    if errcheck:
        def _errcheck(result, f, args):
            if (result == (-1)):
                errcode = ctypes.get_errno()
                raise OSError(errcode, os.strerror(errcode))
            return result
        func.errcheck = _errcheck
    return func