def nl_socket_set_cb(sk, cb):
if cb is None:<EOL><INDENT>raise BUG<EOL><DEDENT>sk.s_cb = cb<EOL>
Store nl_cb callback handler in the nl_sock socket, overwriting the previous callbacks.

    https://github.com/thom311/libnl/blob/libnl3_2_25/lib/socket.c#L614

    Positional arguments:
    sk -- Netlink socket (nl_sock class instance).
    cb -- callbacks (nl_cb class instance).