code: def for_events(*events):
      
      events = set(events)
  
      def wrap(func):
          func.event_types = events
          return func
  
      return wrap
docs: :param events: list of event types
  
      Only calls wrapped function if given event_type is in list of events