code: def __init__(
      self,
      paths,
      vocab,
      bsz,
      bptt,
      device="cpu",
      ext_len=None,
      shuffle=False,
  ):
      self.paths = paths
      self.vocab = vocab
  
      self.bsz = bsz
      self.bptt = bptt
      self.ext_len = ext_len if ext_len is not None else 0
  
      self.device = device
      self.shuffle = shuffle
  
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 1 to create a new LMMultiFileIterator object from inherited base classes: LMShuffledIterator with example: obj = LMMultiFileIterator(paths, vocab, bsz, bptt, device, ext_len, shuffle)