def _fetch(in_parsed, *keys):
for ie in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>target = in_parsed.get(ie, {})<EOL>for key in keys:<EOL><INDENT>target = target.get(key, {})<EOL><DEDENT>if target:<EOL><INDENT>return target<EOL><DEDENT><DEDENT>return None<EOL>
Retrieve nested dict data from either information elements or beacon IES dicts.

    Positional arguments:
    in_parsed -- dictionary to read from.
    keys -- one or more nested dict keys to lookup.

    Returns:
    Found value or None.