code: def test_max_nfev_Model(modelGaussian, minimizerGaussian, method):
      """Test the max_nfev argument for all solvers using Model interfce."""
      x, y, mod, pars = modelGaussian
      out = mod.fit(y, pars, x=x, method=method, max_nfev=10)
  
      assert out.max_nfev == 10
      assert out.nfev < 15
      assert out.aborted
      assert not out.errorbars
      assert not out.success
  
file_path: lmfit-py/tests/test_max_nfev.py
imports: import numpy
  import pytest
  from lmfit.lineshapes import gaussian
  from lmfit.minimizer import Minimizer
  from lmfit.models import GaussianModel, LinearModel
label_desc: Use image node_id 4 for calling a global function with example usage: test_max_nfev_Model(modelGaussian, minimizerGaussian, method) without return types