<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def error_handler(_, err, arg):
 """Update the mutable integer `arg` with the error code."""

    arg.value = err.error
    return libnl.handlers.NL_STOP