code: def test_lasso_path(self):
      diabetes = datasets.load_diabetes()
      df = pdml.ModelFrame(diabetes)
  
      result = df.linear_model.lasso_path()
      expected = lm.lasso_path(diabetes.data, diabetes.target)
  
      self.assertEqual(len(result), 3)
      tm.assert_numpy_array_equal(result[0], expected[0])
      self.assertIsInstance(result[1], pdml.ModelFrame)
      tm.assert_index_equal(result[1].index, df.data.columns)
      self.assert_numpy_array_almost_equal(
          result[1].values, expected[1]
      )
      self.assert_numpy_array_almost_equal(result[2], expected[2])
  
      result = df.linear_model.lasso_path(return_models=True)
      expected = lm.lasso_path(
          diabetes.data, diabetes.target, return_models=True
      )
      self.assertEqual(len(result), len(expected))
      self.assertIsInstance(result, tuple)
      tm.assert_numpy_array_equal(result[0], result[0])
      tm.assert_numpy_array_equal(result[1], result[1])
      tm.assert_numpy_array_equal(result[2], result[2])
  
file_path: pandas-ml/pandas_ml/skaccessors/test/test_linear_model.py
imports: import pytest
  import sklearn.datasets
  import sklearn.linear_model
  import sklearn.preprocessing
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 3 for calling the TestLinearModel obj's underlying member method code with example usage: obj.test_lasso_path() without return types