code: def testInvalidThreshold(self):
      seqDS = dataseries.SequenceDataSeries()
      with self.assertRaisesRegexp(Exception, "Invalid thresholds"):
          linreg.Trend(seqDS, 10, 0.2, 0.5, 5)
  
file_path: pyalgotrade/testcases/technical_trend_test.py
imports: from .None import common
  from pyalgotrade.technical import linreg
  from pyalgotrade import dataseries
label_desc: Use image node_id 5 for calling the TrendTest obj's underlying member method code with example usage: obj.testInvalidThreshold() without return types