class_docstr: Data from the multi-turn adversarial collection described in the paper `Build it
  Break it Fix it for Dialogue Safety: Robustness from Adversarial Human Attack`
  (<https://arxiv.org/abs/1908.06083>)
  
  To see data containing multi-turn conversations, try running
  `parlai display_data -t dialogue_safety:multiturn`.
  
  Run the above command with the flag `--single-turn True` to only see the
  single turn data.
class_docstr_tok: ["Data","from","the","multi-turn","adversarial","collection","described","in","the","paper","`","Build","it","Break","it","Fix","it","for","Dialogue","Safety",":","Robustness","from","Adversarial","Human","Attack","`","(","<","https",":","\/\/arxiv.org\/abs\/1908.06083",">",")","To","see","data","containing","multi-turn","conversations",",","try","running","`","parlai","display_data","-t","dialogue_safety",":","multiturn","`",".","Run","the","above","command","with","the","flag","`","--","single-turn","True","`","to","only","see","the","single","turn","data","."]
code: def __init__(self, opt, shared=None):
      build(opt["datapath"])  # download the data
      self.opt = opt
      self.data_path = os.path.join(
          opt["datapath"], "dialogue_safety", MULTI_TURN_DATA
      )
  
      self.fixed_random = random.Random(42)
      self.single_turn = opt["single_turn"]
  
      if shared and "data" in shared:
          self.data = shared["data"]
      else:
          self._setup_data(opt["datatype"])
  
      super().__init__(opt, shared)
      self.reset()
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import parlai.core.build_data
  from parlai.core.message import Message
  from parlai.core.teachers import FixedDialogTeacher
  from parlai.utils.io import PathManager
  from .base_agent import _BaseSafetyTeacher
  from .build import build
  import copy
  import json
  import os
  import random
  import sys
label_desc: Use image node_id 2 to create a new MultiturnTeacher object from inherited base classes: FixedDialogTeacher with example: obj = MultiturnTeacher(opt, shared)