code: def slda_infer(self, doc, burn_in_iter, total_iter):
      assert burn_in_iter >= 0
      assert total_iter > 0
      assert total_iter > burn_in_iter
  
      for iter_ in range(total_iter):
          self.__sampler.sample_doc(doc)
          if iter_ >= burn_in_iter:
              doc.accumulate_topic_num()
  
file_path: PaddleHub/modules/text/language_model/slda_webpage/inference_engine.py
imports: import os
  from paddlehub.common.logger import logger
  from slda_webpage.config import ModelConfig
  from slda_webpage.util import load_prototxt, fix_random_seed, rand_k
  from slda_webpage.model import TopicModel
  from slda_webpage.sampler import GibbsSampler, MHSampler
  from slda_webpage.document import LDADoc, SLDADoc, Token, Sentence
  from slda_webpage.vocab import OOV
label_desc: Use image node_id 4 for calling the InferenceEngine obj's underlying member method code with example usage: obj.slda_infer(doc, burn_in_iter, total_iter) without return types