code: def dispatch(self, event):
          
  
          for event_types, queues in self.queues.items():
              if event.type & event_types:
                  for queue in queues:
                      queue.put(event)
docs: Given an event, send it to all the subscribers.
  
          Args
              event (:class:`~bigchaindb.events.EventTypes`): the event to
                  dispatch to all the subscribers.