class_docstr: Used as a Pyro4 class with exposed methods.
  
  Exposes every non-private method and property of the class automatically to be available for remote access.
class_docstr_tok: ["Used","as","a","Pyro4","class","with","exposed","methods",".","Exposes","every","non-private","method","and","property","of","the","class","automatically","to","be","available","for","remote","access","."]
docstr: Log and get the LDA model's current state.
  
  Returns
  -------
  result : :class:`~gensim.models.ldamodel.LdaState`
      The current state.
docstr_tok: ["Log","and","get","the","LDA","model","'s","current","state",".","Returns","--","--","--","-","result",":",":","class",":","`","~gensim.models.ldamodel.LdaState","`","The","current","state","."]
code: def getstate(self):
      """Log and get the LDA model's current state.
  
      Returns
      -------
      result : :class:`~gensim.models.ldamodel.LdaState`
          The current state.
  
      """
      logger.info(
          "worker #%i returning its state after %s jobs",
          self.myid,
          self.jobsdone,
      )
      result = self.model.state
      assert isinstance(result, ldamodel.LdaState)
      self.model.clear()  # free up mem in-between two EM cycles
      self.finished = True
      return result
  
imports: from __future__ import with_statement
  import os
  import sys
  import logging
  import threading
  import tempfile
  import argparse
  import Pyro4
  from gensim.models import ldamodel
  from gensim import utils
label_desc: Use image node_id 6 for calling the Worker obj's underlying member method code with example usage: obj.getstate() and returns: result