code: def getValue(self):
      ret = super(TrendEventWindow, self).getValue()
      if ret is not None:
          if ret > self.__positiveThreshold:
              ret = True
          elif ret < self.__negativeThreshold:
              ret = False
          else:  # Between negative and postive thresholds.
              ret = None
      return ret
  
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 TrendEventWindow obj's underlying member method code with example usage: obj.getValue() and returns: ret