def convert_event_list_to_dictionary(events):
    """
    This function converts a list of events, which are dicts, for a collection exercise into a dictionary where
    the key is the name of the event and the value is the timestamp.
    This can aid in finding the exact event you want without having to loop through the
    entire list to find the one you want.

    :param events: A list of events for a collection exercise
    :type events: list
    :raises KeyError: If the 'tag' or 'timestamp' keys aren't present in the list of dicts
    :return: A dictionary of events where the name of the events are the keys and the values are the timestamps
    :rtype: dict
    """
    if events is None:
        return {}
    return {event["tag"]: event["timestamp"] for event in events}