code: def get_all_events(self):
          
          self.all_events = {}
          events = self.tree.execute("$.events.frames")
          if events is None:
              return
          for e in events:
              event_type = e.get('type')
              frame_id = e.get('frame_id')
              try:
                  self.all_events[event_type].append(frame_id)
              except KeyError:
                  self.all_events[event_type] = [frame_id]
docs: Gather all event IDs in the REACH output by type.
  
          These IDs are stored in the self.all_events dict.