code: def test_ampgo_local_solver(minimizer_Alpine02):
      """Test AMPGO algorithm with local solver."""
      kws = {"local": "Nelder-Mead"}
  
      out = minimizer_Alpine02.minimize(method="ampgo", **kws)
      out_x = np.array([out.params["x0"].value, out.params["x1"].value])
  
      assert "ampgo" and "Nelder-Mead" in out.method
      assert_allclose(out.residual, fglob, rtol=1e-5)
      assert_allclose(min(out_x), min(global_optimum), rtol=1e-3)
      assert_allclose(max(out_x), max(global_optimum), rtol=1e-3)
      assert "global" in out.ampgo_msg
  
file_path: lmfit-py/tests/test_ampgo.py
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  import lmfit
  from lmfit._ampgo import ampgo, tunnel
label_desc: Use image node_id 5 for calling a global function with example usage: test_ampgo_local_solver(minimizer_Alpine02) without return types