class_docstr: Base class with convenience functions for setting up agents, dumping text, etc.
class_docstr_tok: ["Base","class","with","convenience","functions","for","setting","up","agents",",","dumping","text",",","etc","."]
docstr: Array where [episode_idx][turn_idx][text=0,label=1]
docstr_tok: ["Array","where","[","episode_idx","]","[","turn_idx","]","[","text=0",",","label=1","]"]
code: def dump_teacher_text(self, class_type, round_opt, opt):
      """
      Array where [episode_idx][turn_idx][text=0,label=1]
      """
      teacher = self.setup_agent_or_teacher(class_type, round_opt, opt)
      data = []
      here = []
      for x, new in teacher.setup_data("dummy"):
          if new and len(here) > 0:
              data.append(copy.deepcopy(here))
              here = []
          here.append([x["text"], x["label"]])
      if len(here) > 0:
          data.append(here)
      return data
  
imports: import unittest
  import copy
  import parlai.core.tod.tod_core
  import parlai.core.tod.tod_test_utils.test_agents
label_desc: Use image node_id 3 for calling the TestTodAgentsAndTeachersBase obj's underlying member method code with example usage: obj.dump_teacher_text(class_type, round_opt, opt) and returns: data