class_docstr: TimeWindow
  The unit of timestamp is milliseconds, the unit of window(range, step) is seconds.
class_docstr_tok: ["TimeWindow","The","unit","of","timestamp","is","milliseconds",",","the","unit","of","window","(","range",",","step",")","is","seconds","."]
code: def __call__(self, row_data, timestamp: int) -> bool:
      if timestamp < self._start_time_m:
          return False
  
      if timestamp < self._end_time_m:
          self._window.append(row_data)
          if timestamp >= self._next_start_time_m:
              if self._next_window is None:
                  self._next_window = _TimeWindowBuffer(
                      self._time_range_sec,
                      self._time_step_sec,
                      self._next_start_time_m // 1000,
                  )
              self._next_window(row_data, timestamp)
          return False
  
      if len(self._window) == 0:
          self._start_time_m = (
              timestamp
              // 1000
              // self._time_step_sec
              * self._time_step_sec
              * 1000
          )
          self._end_time_m = (
              self._start_time_m + self._time_range_sec * 1000
          )
          self._next_start_time_m = (
              self._start_time_m // 1000 + self._time_step_sec
          ) * 1000
          if self._start_time_m <= timestamp < self._end_time_m:
              self(row_data, timestamp)
          return False
  
      if self._next_window is None:
          self._next_window = _TimeWindowBuffer(
              self._time_range_sec,
              self._time_step_sec,
              self._next_start_time_m // 1000,
          )
      self._next_window(row_data, timestamp)
      return True
  
file_path: towhee/towhee/runtime/nodes/_time_window.py
imports: from towhee.runtime.constants import TimeWindowConst
  from towhee.runtime.data_queue import Empty
  from ._window_base import WindowBase
label_desc: Use image node_id 2 for calling the _TimeWindowBuffer obj's underlying member method code with example usage: obj.__call__(row_data, timestamp) and returns: True, False, False, False