Handle calling the parser function to convert bytearray data into Python data types.

    Positional arguments:
    out_parsed -- dictionary to update with parsed data and string keys.
    in_bss -- dictionary of integer keys and bytearray values.
    key -- key string to lookup (must be a variable name in libnl.nl80211.nl80211).
    parser_func -- function to call, with the bytearray data as the only argument.

def _get(out_parsed, in_bss, key, parser_func):
    """Handle calling the parser function to convert bytearray data into Python data types.

    Positional arguments:
    out_parsed -- dictionary to update with parsed data and string keys.
    in_bss -- dictionary of integer keys and bytearray values.
    key -- key string to lookup (must be a variable name in libnl.nl80211.nl80211).
    parser_func -- function to call, with the bytearray data as the only argument.
    """
    short_key = key[12:].lower()
    key_integer = getattr(nl80211, key)
    if in_bss.get(key_integer) is None:
        return dict()
    data = parser_func(in_bss[key_integer])
    if parser_func == libnl.attr.nla_data:
        data = data[:libnl.attr.nla_len(in_bss[key_integer])]
    out_parsed[short_key] = data