docstr: Fully initialize the worker.
  
  Parameters
  ----------
  myid : int
      An ID number used to identify this worker in the dispatcher object.
  dispatcher : :class:`~gensim.models.lsi_dispatcher.Dispatcher`
      The dispatcher responsible for scheduling this worker.
  **model_params
      Keyword parameters to initialize the inner LSI model, see :class:`~gensim.models.lsimodel.LsiModel`.
docstr_tok: ["Fully","initialize","the","worker",".","Parameters","--","--","--","--","--","myid",":","int","An","ID","number","used","to","identify","this","worker","in","the","dispatcher","object",".","dispatcher",":",":","class",":","`","~gensim.models.lsi_dispatcher.Dispatcher","`","The","dispatcher","responsible","for","scheduling","this","worker",".","*","*","model_params","Keyword","parameters","to","initialize","the","inner","LSI","model",",","see",":","class",":","`","~gensim.models.lsimodel.LsiModel","`","."]
code: def initialize(self, myid, dispatcher, **model_params):
      """Fully initialize the worker.
  
      Parameters
      ----------
      myid : int
          An ID number used to identify this worker in the dispatcher object.
      dispatcher : :class:`~gensim.models.lsi_dispatcher.Dispatcher`
          The dispatcher responsible for scheduling this worker.
      **model_params
          Keyword parameters to initialize the inner LSI model, see :class:`~gensim.models.lsimodel.LsiModel`.
  
      """
      self.lock_update = threading.Lock()
      self.jobsdone = 0  # how many jobs has this worker completed?
      # id of this worker in the dispatcher; just a convenience var for easy access/logging TODO remove?
      self.myid = myid
      self.dispatcher = dispatcher
      self.finished = False
      logger.info("initializing worker #%s", myid)
      self.model = lsimodel.LsiModel(**model_params)
  
file_path: gensim/gensim/models/lsi_worker.py
imports: import os
  import sys
  import logging
  import argparse
  import threading
  import tempfile
  import queue
  import Pyro4
  from gensim.models import lsimodel
  from gensim import utils
label_desc: Use image node_id 2 for calling the Worker obj's underlying member method code with example usage: obj.initialize(myid, dispatcher) without return types