class_docstr: CMU Document Grounded Conversations Dataset (aka CMU_DoG)
  
  Paper: https://arxiv.org/pdf/1809.07358.pdf
  Source: https://github.com/festvox/datasets-CMU_DoG
class_docstr_tok: ["CMU","Document","Grounded","Conversations","Dataset","(","aka","CMU_DoG",")","Paper",":","https",":","\/\/arxiv.org\/pdf\/1809.07358.pdf","Source",":","https",":","\/\/github.com\/festvox\/datasets-CMU_DoG"]
code: def __init__(self, opt: Opt, shared: TShared = None):
      opt = copy.deepcopy(opt)
      self.delimiter = opt.get("delimiter", "\n")
      split_type = SplitType(opt.get("cmu_dog_split_type"))
      if split_type == SplitType.ORIGINAL:
          logger.warning(
              "`original` split type contains duplicate conversations across train, "
              "valid, and test. See https://github.com/festvox/datasets-CMU_DoG/issues/2 "
              "for more detail."
          )
      opt["datafile"] = _datafile(
          split=DatatypeHelper.fold(opt["datatype"]),
          split_type=split_type,
      )
      super().__init__(opt, shared)
      if shared:
          self.rare_word_f1 = shared["rare_word_f1"]
      else:
          self.rare_word_f1 = _build_rare_word_f1(opt)
  
imports: import copy
  import json
  import os
  from enum import Enum
  from typing import List, Optional, Tuple
  from parlai.core.message import Message
  from parlai.core.metrics import F1Metric
  from parlai.core.mutators import EpisodeMutator, MessageMutator, register_mutator
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.core.teachers import DialogTeacher
  from parlai.tasks.cmu_dog.build import build
  from parlai.tasks.wizard_of_wikipedia.agents import RareWordF1Calculator, TOKEN_KNOWLEDGE, TOKEN_END_KNOWLEDGE
  from parlai.utils.data import DatatypeHelper
  from parlai.utils.io import PathManager
  from parlai.utils.logging import logger
  from parlai.utils.typing import TShared
label_desc: Use image node_id 1 to create a new CMUDocumentGroundedConversationsTeacher object from inherited base classes: DialogTeacher with example: obj = CMUDocumentGroundedConversationsTeacher(opt, shared)