<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _fetch(in_parsed, *keys):
 """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. """

    for ie in ('information_elements', 'beacon_ies'):
        target = in_parsed.get(ie, {})
        for key in keys:
            target = target.get(key, {})
        if target:
            return target
    return None