code: def test_LinearRegression_simple():
      """
      Test a simple linear regression
      """
      x = np.arange(10.0).reshape((10, 1))
      y = np.arange(10.0) + 1
      dy = 1
  
      clf = LinearRegression().fit(x, y, dy)
      y_true = clf.predict(x)
  
      assert_allclose(y, y_true, atol=1e-10)
  
file_path: astroML/astroML/linear_model/tests/test_linear_regression.py
imports: import pytest
  import numpy
  from numpy.testing import assert_allclose
  from sklearn.linear_model import LinearRegression
  from astroML.linear_model import LinearRegression, PolynomialRegression, BasisFunctionRegression
label_desc: Use image node_id 3 for calling a global function with example usage: test_LinearRegression_simple() without return types