class_docstr: A wrapper class for MMDataset for fairseq.
class_docstr_tok: ["A","wrapper","class","for","MMDataset","for","fairseq","."]
code: def __init__(self, mmdataset):
      if not isinstance(mmdataset, Dataset):
          raise TypeError(
              "mmdataset must be of type `torch.utils.data.dataset`."
          )
      self.mmdataset = mmdataset
  
file_path: fairseq/examples/MMPT/mmpt/datasets/fairseqmmdataset.py
imports: from collections import OrderedDict
  from torch.utils.data import Dataset
  from torch.utils.data.dataloader import default_collate
  from fairseq.data import FairseqDataset, data_utils
label_desc: Use image node_id 1 to create a new FairseqMMDataset object from inherited base classes: FairseqDataset with example: obj = FairseqMMDataset(mmdataset)