code: def reset(self, shuffle=True):
      self.idx = 0
      if shuffle:
          random.shuffle(self.data)
  
imports: import re
  import codecs
  import random
  from collections import Counter
label_desc: Use image node_id 2 for calling the DataLoader obj's underlying member method code with example usage: obj.reset(shuffle) without return types