class_docstr: Teacher for ProsocialDialog Data https://github.com/skywalker023/prosocial-dialog
class_docstr_tok: ["Teacher","for","ProsocialDialog","Data","https",":","\/\/github.com\/skywalker023\/prosocial-dialog"]
code: def __init__(self, opt, shared=None):
      self.datatype = opt["datatype"]
      build(opt)
      self.datatype = opt["datatype"].split(":")[0]
      opt["datafile"] = os.path.join(
          opt["datapath"], "prosocial_dialog", self.datatype + ".json"
      )
      self.id = "prosocial_dialog"
      super().__init__(opt, shared)
  
imports: import json
  import os
  from typing import Optional
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.core.teachers import DialogTeacher
  from .build import build
label_desc: Use image node_id 2 to create a new ProsocialDialogTeacher object from inherited base classes: DialogTeacher with example: obj = ProsocialDialogTeacher(opt, shared)