code: def test_max_nfev_Minimizer(minimizerGaussian, method):
      """Test the max_nfev argument for all solvers using Minimizer interface."""
      result = minimizerGaussian.minimize(method=method, max_nfev=10)
      assert minimizerGaussian.max_nfev == 10
      assert result.nfev < 15
      assert result.aborted
      assert not result.errorbars
      assert not result.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 3 for calling a global function with example usage: test_max_nfev_Minimizer(minimizerGaussian, method) without return types