code: def __init__(self, opt, shared=None):
      build(opt)
      task = opt.get("task")
      if not task:
          task = "wikimovies:KB:kb"
      kb = task.split(":")
      if len(kb) == 3:
          kb = kb[2]
      elif len(kb) == 2:
          # default to 'kb' if 'kb', 'wiki', or 'ie' not specified
          kb = "kb"
      kbs = {}
      kbs["kb"] = os.path.join("wiki_entities", "wiki_entities_kb.txt")
      kbs["wiki"] = "wiki.txt"
      kbs["ie"] = "wiki_ie.txt"
      opt["datafile"] = os.path.join(
          opt["datapath"],
          "WikiMovies",
          "movieqa",
          "knowledge_source",
          kbs[kb],
      )
      super().__init__(opt, shared)
  
file_path: ParlAI/parlai/tasks/wikimovies/agents.py
imports: from parlai.core.teachers import FbDeprecatedDialogTeacher
  from .build import build
  import copy
  import os
label_desc: Use image node_id 1 to create a new KBTeacher object from inherited base classes: FbDeprecatedDialogTeacher with example: obj = KBTeacher(opt, shared)