Design a system that shows treadmill stats and updates in real time.
Implement update_treadmill_stats(events). Each event is [timestamp, metric, value]. Process events in arrival order and return a list containing a copy of the complete stats dictionary after every event. For each metric, accept an update only when its timestamp is at least as recent as the latest accepted timestamp for that metric. If timestamps are equal, the later-arriving event wins.
events is a list of event lists. Return a list of dictionaries.
def update_treadmill_stats(events):