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))]
  
      if self.sort_by_length:
          order.append(self.sizes)
          return np.lexsort(order)[::-1]
      else:
          return order[0]
  
file_path: fairseq/examples/wav2vec/unsupervised/data/extracted_features_dataset.py
imports: import logging
  import os
  import contextlib
  import numpy
  import torch
  from fairseq.data import FairseqDataset, data_utils
label_desc: Use image node_id 7 for calling the ExtractedFeaturesDataset obj's underlying member method code with example usage: obj.ordered_indices() and returns: np, order