class_docstr: Collect data by size and step.
class_docstr_tok: ["Collect","data","by","size","and","step","."]
code: def __call__(self, data: List, index: int) -> bool:
      if index < self._start_index:
          return False
  
      if index < self._end_index:
          self._buffer.append(data)
          if index >= self._next_start_index:
              if self._next_buffer is None:
                  self._next_buffer = _WindowBuffer(
                      self._size, self._step, self._next_start_index
                  )
              self._next_buffer(data, index)
          return False
  
      if self._next_buffer is None:
          self._next_buffer = _WindowBuffer(
              self._size, self._step, self._next_start_index
          )
  
      self._next_buffer(data, index)
      return True
  
file_path: towhee/towhee/runtime/nodes/_window.py
imports: from typing import List
  from towhee.runtime.constants import WindowConst
  from ._window_base import WindowBase
label_desc: Use image node_id 2 for calling the _WindowBuffer obj's underlying member method code with example usage: obj.__call__(data, index) and returns: True, False, False