docstr: Return an ordered list of indices. Batches will be constructed based
  on this order.
docstr_tok: ["Return","an","ordered","list","of","indices",".","Batches","will","be","constructed","based","on","this","order","."]
code: def ordered_indices(self):
      """Return an ordered list of indices. Batches will be constructed based
      on this order."""
      if self.shuffle:
          order = [np.random.permutation(len(self))]
      else:
          order = [np.arange(len(self))]
  
      return order[0]
  
imports: from functools import partial
  import logging
  import math
  import random
  import time
  import numpy
  import os
  import torch
  from torchvision import datasets, transforms
  from .path_dataset import PathDataset
  from fairseq.data import FairseqDataset
  from fairseq.data.data_utils import compute_block_mask_1d, compute_block_mask_2d
  from shutil import copyfile
label_desc: Use image node_id 8 for calling the MaeImageDataset obj's underlying member method code with example usage: obj.ordered_indices() and returns: order