class_docstr: AirDialogue Teacher.
  
  This also contains other files (dev_kb.json, train_kb.json) with flight data about
  return flights, price, connections, flight airlines, departure times, and other
  flight information. More information and related paper can be found at
  <https://github.com/google/airdialogue>.
class_docstr_tok: ["AirDialogue","Teacher",".","This","also","contains","other","files","(","dev_kb.json",",","train_kb.json",")","with","flight","data","about","return","flights",",","price",",","connections",",","flight","airlines",",","departure","times",",","and","other","flight","information",".","More","information","and","related","paper","can","be","found","at","<","https",":","\/\/github.com\/google\/airdialogue",">","."]
code: def get(self, episode_idx, entry_idx=0):
      log_idx = entry_idx * 2
      entry = self.messages[episode_idx][log_idx]
      entry = entry.split(": ")[1]
      last_backnforth_idx = len(self.messages[episode_idx]) - 2
      # sometimes the first speaker is at the end with no reply
      if len(self.messages[episode_idx]) % 2 == 1:
          last_backnforth_idx -= 1
      episode_done = log_idx >= last_backnforth_idx
      label_text = self.messages[episode_idx][log_idx + 1]
      label_text = label_text.split(": ")[1]
      labels = [label_text]
      action = {
          "id": self.id,
          "text": entry,
          "episode_done": episode_done,
          "labels": labels,
      }
      return Message(action)
  
file_path: ParlAI/parlai/tasks/airdialogue/agents.py
imports: from parlai.core.teachers import FixedDialogTeacher
  from parlai.core.message import Message
  from parlai.utils.io import PathManager
  from .build import build
  import os
  import json
label_desc: Use image node_id 7 for calling the AirDialogueTeacher obj's underlying member method code with example usage: obj.get(episode_idx, entry_idx) and returns: Message