class_docstr: A wrapper for a multitask dataset.
class_docstr_tok: ["A","wrapper","for","a","multitask","dataset","."]
code: def collater(self, *args, **kwargs):
      ans = self.dataset.collater(*args, **kwargs)
      if "net_input" in ans:
          ans["net_input"][
              "target_language_id"
          ] = self.target_language_id
          ans["net_input"]["dataset_name"] = self.name
      return ans
  
imports: from collections import OrderedDict
  import numpy
  from fairseq.data import BaseWrapperDataset, FairseqDataset, iterators
label_desc: Use image node_id 2 for calling the MultitaskDatasetWrapper obj's underlying member method code with example usage: obj.collater() and returns: ans