code: def __buildSlope(self, values, period, slopeMaxLen=None):
      seqDS = dataseries.SequenceDataSeries()
      ret = linreg.Slope(seqDS, period, slopeMaxLen)
      for value in values:
          seqDS.append(value)
      return ret
  
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 1 for calling the SlopeTest obj's underlying member method code with example usage: obj.__buildSlope(values, period, slopeMaxLen) and returns: ret