class_docstr: A wrapper for a multitask dataset.
class_docstr_tok: ["A","wrapper","for","a","multitask","dataset","."]
code: def ordered_indices(self, *args, **kwargs):
      indices = self.dataset.ordered_indices(*args, **kwargs)
      # Hacky solution for sampling
      size = int(self.sample * indices.shape[0])
  
      return indices.take(
          np.sort(np.random.permutation(indices.shape[0])[:size])
      )
  
imports: from collections import OrderedDict
  import numpy
  from fairseq.data import BaseWrapperDataset, FairseqDataset, iterators
label_desc: Use image node_id 4 for calling the MultitaskDatasetWrapper obj's underlying member method code with example usage: obj.ordered_indices() and returns: indices