code: def __dispatchSubject(self, subject, currEventDateTime):
      ret = False
      # Dispatch if the datetime is currEventDateTime of if its a realtime subject.
      if not subject.eof() and subject.peekDateTime() in (
          None,
          currEventDateTime,
      ):
          ret = subject.dispatch() is True
      return ret
  
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 8 for calling the Dispatcher obj's underlying member method code with example usage: obj.__dispatchSubject(subject, currEventDateTime) and returns: ret