code: def shuffled_infinite_list(lst):
      order = range(len(lst))
      while True:
          random.shuffle(order)
          for i in order:
              yield lst[i]
  
file_path: dynet/examples/rnnlm/lstmlm-auto.py
imports: from __future__ import print_function
  from collections import defaultdict
  import math
  import random
  import time
  import dynet
label_desc: Use image node_id 1 for calling a global function with example usage: shuffled_infinite_list(lst) without return types