<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def nla_put_u32(msg, attrtype, value):
 """Add 32 bit integer attribute to Netlink message. https://github.com/thom311/libnl/blob/libnl3_2_25/lib/attr.c#L613 Positional arguments: msg -- Netlink message (nl_msg class instance). attrtype -- attribute type (integer). value -- numeric value to store as payload (int() or c_uint32()). Returns: 0 on success or a negative error code. """

    data = bytearray(value if isinstance(value, c_uint32) else c_uint32(value))
    return nla_put(msg, attrtype, SIZEOF_U32, data)