code: def test_ampgo_local_opts(minimizer_Alpine02):
      """Test AMPGO algorithm, pass local_opts to solver."""
      # use local_opts to pass maxfun to the local optimizer: providing a string
      # whereas an integer is required, this should throw an error.
      kws = {"local_opts": {"maxfun": "string"}}
      with pytest.raises(TypeError):
          minimizer_Alpine02.minimize(method="ampgo", **kws)
  
      # for coverage: make sure that both occurrences are reached
      kws = {"local_opts": {"maxfun": 10}, "maxfunevals": 50}
      minimizer_Alpine02.minimize(method="ampgo", **kws)
  
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 9 for calling a global function with example usage: test_ampgo_local_opts(minimizer_Alpine02) without return types