code: def testLinear():
      mod = lmfit.models.LinearModel()
      x = np.linspace(-1, 1, 201)
      y = 10 * x + 2
      params = mod.make_params(intercept=1, slope=2)
      check_fit(mod, params, x, y, dict(intercept=2, slope=10))
  
file_path: lmfit-py/tests/test_models.py
imports: import numpy
  import lmfit
  from lmfit.lineshapes import gaussian
  from lmfit.models import GaussianModel, SplineModel
label_desc: Use image node_id 3 for calling a global function with example usage: testLinear() without return types