def nla_get_flag(nla):
    """Return True if flag attribute is set.
    https://github.com/thom311/libnl/blob/libnl3_2_25/lib/attr.c#L720

    Positional arguments:
    nla -- flag Netlink attribute (nlattr class instance).

    Returns:
    True if flag is set, otherwise False.
    """
    return not not nla
