code: def test_default_max_nfev(
      modelGaussian, minimizerGaussian, method, default_max_nfev
  ):
      """Test the default values when setting max_nfev=None."""
      x, y, mod, pars = modelGaussian
      result = mod.fit(y, pars, x=x, method=method, max_nfev=None)
      assert result.max_nfev == default_max_nfev
  
      _ = minimizerGaussian.minimize(method=method, max_nfev=None)
      assert minimizerGaussian.max_nfev == default_max_nfev
  
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 5 for calling a global function with example usage: test_default_max_nfev(modelGaussian, minimizerGaussian, method, default_max_nfev) without return types