code: def __dispatch(self):
      smallestDateTime = None
      eof = True
      eventsDispatched = False
  
      # Scan for the lowest datetime.
      for subject in self.__subjects:
          if not subject.eof():
              eof = False
              smallestDateTime = utils.safe_min(
                  smallestDateTime, subject.peekDateTime()
              )
  
      # Dispatch realtime subjects and those subjects with the lowest datetime.
      if not eof:
          self.__currDateTime = smallestDateTime
  
          for subject in self.__subjects:
              if self.__dispatchSubject(subject, smallestDateTime):
                  eventsDispatched = True
      return eof, eventsDispatched
  
file_path: pyalgotrade/pyalgotrade/dispatcher.py
imports: from pyalgotrade import utils
  from pyalgotrade import observer
  from pyalgotrade import dispatchprio
label_desc: Use image node_id 9 for calling the Dispatcher obj's underlying member method code with example usage: obj.__dispatch() and returns: eof,  eventsDispatched