code: def event_values(event, vars):
      
      if isinstance(event, tuple) and len(event) == len(vars):
          return event
      else:
          return tuple([event[var] for var in vars])
docs: Return a tuple of the values of variables vars in event.
      >>> event_values ({'A': 10, 'B': 9, 'C': 8}, ['C', 'A'])
      (8, 10)
      >>> event_values ((1, 2), ['C', 'A'])
      (1, 2)