code: def get_sent_stream(self):
      # index iterator
      epoch_indices = (
          np.random.permutation(len(self.data))
          if self.shuffle
          else np.array(range(len(self.data)))
      )
  
      # sentence iterator
      for idx in epoch_indices:
          yield self.data[idx]
  
imports: import glob
  import os
  import pickle
  import re
  from collections import Counter, OrderedDict
  from typing import List, Optional, Tuple
  import numpy
  from ...tokenization_utils import PreTrainedTokenizer
  from ...utils import cached_file, is_sacremoses_available, is_torch_available, logging, requires_backends, torch_only_method
label_desc: Use image node_id 2 for calling the LMShuffledIterator obj's underlying member method code with example usage: obj.get_sent_stream() without return types