def event_summary(event_info, summary_keys=['host', 'task', 'role', 'event']):
    """ Provide a quick overview of the event code_data

    :param event_info: dict/json of a job event
    :param summary_keys: list of fields that represent a summary of the event
                         the event data is checked at the outer level, and in
                         the event_data namespace
    :return: Returns summary metadata for the event
    """

    if summary_keys:
        base = {k: event_info[k] for k in summary_keys if k in event_info}
        event_data = {k: event_info['event_data'][k] for k in summary_keys
                      if k in event_info.get('event_data')}

        # python3.5 an above idiom
        # return {**base, **event_data}
        merged = base.copy()
        merged.update(event_data)
        return merged
    else:
        return event_info