code: def filter_callbacks(cls, client, event_data):
          
  
          for event in cls.filter_events(client, event_data):
              for cb in event.callbacks:
                  yield cb
docs: Filter registered events and yield all of their callbacks.