code: def _fetch(in_parsed, *keys):
      
      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
docs: 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.