code: def onNewValue(self, dateTime, value):
      technical.EventWindow.onNewValue(self, dateTime, value)
      if value is not None:
          timestamp = dt.datetime_to_timestamp(dateTime)
          if len(self._timestamps):
              assert timestamp > self._timestamps[-1]
          self._timestamps.append(timestamp)
  
imports: from pyalgotrade import technical
  from pyalgotrade.utils import collections
  from pyalgotrade.utils import dt
  import numpy
  from scipy import stats
label_desc: Use image node_id 2 for calling the LeastSquaresRegressionWindow obj's underlying member method code with example usage: obj.onNewValue(dateTime, value) without return types