class_docstr: Interactive world for wizard of wikipedia.
  
  Used for models trained on the task `-t wizard_of_wikipedia`. Automatically
  retrieves knowledge from Wikipedia based on the conversation history using a TF-IDF
  retriever. Then uses a Transformer-based model to select a checked sentence from
  these retrieved passages.
class_docstr_tok: ["Interactive","world","for","wizard","of","wikipedia",".","Used","for","models","trained","on","the","task","`","-t","wizard_of_wikipedia","`",".","Automatically","retrieves","knowledge","from","Wikipedia","based","on","the","conversation","history","using","a","TF-IDF","retriever",".","Then","uses","a","Transformer-based","model","to","select","a","checked","sentence","from","these","retrieved","passages","."]
code: def __init__(self, opt, agents, shared=None):
      super().__init__(opt, agents, shared)
      print("[ loading topics.. ]")
      self.opt = opt
      self._load_topics(opt)
      self.num_topics = opt["num_topics"]
      self.cnt = 0
      self.human_agent = self.agents[0]
      self.model_agent = self.agents[1]
  
      self._set_up_knowledge_agent(
          opt.get("add_token_knowledge", False)
      )
  
      self.print_checked_sentence = opt["print_checked_sentence"]
  
imports: from typing import Optional
  from parlai.core.opt import Opt
  from copy import deepcopy
  import json
  import random
  import os
  import string
  from parlai.core.params import ParlaiParser
  from parlai.core.agents import create_agent
  from parlai.core.message import Message
  from parlai.core.worlds import DialogPartnerWorld, validate
  from parlai.tasks.wizard_of_wikipedia.agents import TOKEN_KNOWLEDGE, TOKEN_END_KNOWLEDGE
  from parlai.tasks.self_chat.worlds import SelfChatWorld
  from parlai.utils.misc import warn_once
  from .build import build
  from projects.wizard_of_wikipedia.knowledge_retriever.knowledge_retriever import KnowledgeRetrieverAgent
label_desc: Use image node_id 2 to create a new InteractiveWorld object from inherited base classes: DialogPartnerWorld with example: obj = InteractiveWorld(opt, agents, shared)