class_docstr: Teacher for written two-person dialogues with labels being responses for the
  previous statement.
  
  The data is traversed twice (doubled), once for modelling USER replies and once for
  modelling ASSISTANT replies.
class_docstr_tok: ["Teacher","for","written","two-person","dialogues","with","labels","being","responses","for","the","previous","statement",".","The","data","is","traversed","twice","(","doubled",")",",","once","for","modelling","USER","replies","and","once","for","modelling","ASSISTANT","replies","."]
code: def get(self, episode_idx, entry_idx):
      conversation = self.convos[episode_idx % len(self.convos)]
      if episode_idx < len(self.convos):
          # USER then ASSISTANT mode [First pass]
          ep_done = (
              entry_idx * 2
              == self.ep_cheat_sheet[episode_idx][
                  tm_utils.LAST_USER_IDX
              ]
          )
          predecessor = conversation[entry_idx * 2]["text"]
          successor = conversation[entry_idx * 2 + 1]["text"]
      else:
          # ASSISTANT then USER mode [Second pass]
          ep_done = (
              entry_idx * 2 + 1
              == self.ep_cheat_sheet[episode_idx % len(self.convos)][
                  tm_utils.LAST_ASSISTANT_IDX
              ]
          )
          predecessor = conversation[entry_idx * 2 + 1]["text"]
          successor = conversation[entry_idx * 2 + 2]["text"]
  
      action = {
          "id": self.id,
          "text": predecessor,
          "episode_done": ep_done,
          "labels": [successor],
      }
  
      return action
  
imports: from parlai.core.params import ParlaiParser
  import os
  import pandas
  from parlai.core.opt import Opt
  import parlai.core.tod.tod_core
  from typing import Optional
  from parlai.utils.data import DatatypeHelper
  from parlai.utils.io import PathManager
  import parlai.tasks.taskmaster.build
  import parlai.core.tod.tod_agents
  from parlai.core.teachers import FixedDialogTeacher
  from .None import tm_utils
  import json
label_desc: Use image node_id 5 for calling the SelfDialogueTeacher obj's underlying member method code with example usage: obj.get(episode_idx, entry_idx) and returns: action