code: def __init__(self, opt, shared=None):
      # store datatype
      super().__init__(opt, shared)
  
      dt = opt["datatype"].split(":")[0]
      if dt != "train":
          raise RuntimeError("Not valid datatype (only train).")
  
      if shared:
          self.data = shared["data"]
      else:
          build(opt)
          self._setup_data()
  
      self.reset()
  
file_path: ParlAI/parlai/tasks/ccpe/agents.py
imports: from parlai.core.teachers import FixedDialogTeacher
  from parlai.utils.io import PathManager
  from .build import build
  import os
  import json
label_desc: Use image node_id 1 to create a new CCPEAllTeacher object from inherited base classes: FixedDialogTeacher with example: obj = CCPEAllTeacher(opt, shared)