class_docstr: Extension of fairseq.data.LanguagePairDataset where each example
  has a score from a ensemble of teacher models.
class_docstr_tok: ["Extension","of","fairseq.data.LanguagePairDataset","where","each","example","has","a","score","from","a","ensemble","of","teacher","models","."]
code: def collater(self, dataset_samples):
      return TeacherDataset.collate(
          dataset_samples,
          self.teacher_models,
          self.top_k_teacher_tokens,
          self.src_dict.pad(),
          self.src_dict.eos(),
          self.top_k_teacher_scores,
          self.top_k_teacher_indices,
      )
  
file_path: translate/pytorch_translate/research/knowledge_distillation/teacher_score_data.py
imports: import math
  from typing import Any, Dict, List, Optional
  import numpy
  import torch
  import torch.nn.functional
  from fairseq import data, utils
  from pytorch_translate import utils
label_desc: Use image node_id 3 for calling the TeacherDataset obj's underlying member method code with example usage: obj.collater(dataset_samples) and returns: TeacherDataset