def get_events(self, event_type: Optional[CBEventType] = None) -> List[CBEvent]:
        """Get all events for a specific event type."""
        if event_type is not None:
            return self._event_pairs_by_type[event_type]

        return self._sequential_events
Get all events for a specific event type.
llama-index-core/llama_index/core/callbacks/llama_debug.py