code: def testLsreg1(self):
      x = [0, 1, 2]
      y = [1, 2, 3]
      a, b = linreg.lsreg(x, y)
      self.assertEqual(round(a, 2), 1.0)
      self.assertEqual(round(b, 2), 1.0)
  
file_path: pyalgotrade/testcases/technical_linreg_test.py
imports: import datetime
  from .None import common
  from pyalgotrade.technical import linreg
  from pyalgotrade import dataseries
label_desc: Use image node_id 1 for calling the LeastSquaresRegressionTestCase obj's underlying member method code with example usage: obj.testLsreg1() without return types