class_docstr: Dispatcher object that communicates and coordinates individual workers.
  
  Warnings
  --------
  There should never be more than one dispatcher running at any one time.
docstr: Merge states from across all workers and return the result.
  
  Returns
  -------
  :class:`~gensim.models.ldamodel.LdaState`
      Merged resultant state
docstr_tok: ["Merge","states","from","across","all","workers","and","return","the","result",".","Returns","--","--","--","-",":","class",":","`","~gensim.models.ldamodel.LdaState","`","Merged","resultant","state"]
code: def getstate(self):
      """Merge states from across all workers and return the result.
  
      Returns
      -------
      :class:`~gensim.models.ldamodel.LdaState`
          Merged resultant state
  
      """
      logger.info("end of input, assigning all remaining jobs")
      logger.debug(
          "jobs done: %s, jobs received: %s",
          self._jobsdone,
          self._jobsreceived,
      )
      i = 0
      count = 10
      while self._jobsdone < self._jobsreceived:
          time.sleep(0.5)  # check every half a second
          i += 1
          if i > count:
              i = 0
              for workerid, worker in self.workers.items():
                  logger.info(
                      "checking aliveness for worker %s", workerid
                  )
                  worker.ping()
  
      logger.info("merging states from %i workers", len(self.workers))
      workers = list(self.workers.values())
      result = workers[0].getstate()
      for worker in workers[1:]:
          result.merge(worker.getstate())
  
      logger.info("sending out merged state")
      return result
  
imports: import argparse
  import os
  import sys
  import logging
  import threading
  import time
  from queue import Queue
  import Pyro4
  from gensim import utils
  from gensim.models.lda_worker import LDA_WORKER_PREFIX
label_desc: Use image node_id 6 for calling the Dispatcher obj's underlying member method code with example usage: obj.getstate() and returns: result