def METHOD_NAME(process_data: dict, time_window: list):  # add time window to function
    raw_events = []
    for event_type in supported_event_types:
        event_key = '{}_complete'.format(event_type)
        if event_key in process_data:
            for event_data in process_data[event_key]:
                parsed_event = parse_raw_event_to_obj(event_type, event_data)
                if parsed_event is not None:
                    timestamp = get_timestamp_by_event_type(event_obj=parsed_event, event_type=event_type)
                    if timestamp:
                        if (time_window and is_timestamp_in_window(timestamp, time_window)) or (not time_window):
                            parsed_event['parsed_timestamp'] = format_timestamp(timestamp)
                            raw_events.append({
                                'event_type': event_type,
                                'parsed_event_data': parsed_event
                            })
    return raw_events