class_docstr: Teacher with single task, specified by moviedialog:task:N.
docstr: Initialize teacher.
docstr_tok: ["Initialize","teacher","."]
code: def __init__(self, opt, shared=None):
      """
      Initialize teacher.
      """
      try:
          # expecting "moviedialog:task:N"
          self.task = opt["task"].split(":")[2]
      except IndexError:
          self.task = "1"  # default task
      opt["datafile"], opt["cands_datafile"] = _path(self.task, opt)
      super().__init__(opt, shared)
  
file_path: ParlAI/parlai/tasks/moviedialog/agents.py
imports: from parlai.core.teachers import FbDeprecatedDialogTeacher, MultiTaskTeacher
  from .build import build
  import copy
  import os
label_desc: Use image node_id 1 to create a new TaskTeacher object from inherited base classes: FbDeprecatedDialogTeacher with example: obj = TaskTeacher(opt, shared)