class_docstr: Stack windowed inputs (x(t-m+1), ... x(t)).
class_docstr_tok: ["Stack","windowed","inputs","(","x","(","t-m+1",")",",","...","x","(","t",")",")","."]
code: def __init__(self, input_shape, history_len=4, dtype=np.float32):
      super(SlidingWindow, self).__init__(input_shape)
      self.__dtype = dtype
      self.__history_len = history_len
      self.__history = deque(maxlen=history_len)
      self.reset()
  
imports: from abc import ABCMeta, abstractmethod
  from collections import deque
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 to create a new SlidingWindow object from inherited base classes: Preprocessing with example: obj = SlidingWindow(input_shape, history_len, dtype)