code: def test_basinhopping_solver_options(minimizer_Alpine02):
      """Test basinhopping algorithm, pass incorrect options to solver."""
      # use minimizer_kwargs to pass an invalid method for local solver to
      # scipy.basinhopping
      kws = {"minimizer_kwargs": {"method": "unknown"}}
      with pytest.raises(ValueError, match=r"Unknown solver"):
          minimizer_Alpine02.minimize(method="basinhopping", **kws)
  
      # pass an incorrect value for niter to scipy.basinhopping
      kws = {"niter": "string"}
      with pytest.raises(TypeError):
          minimizer_Alpine02.minimize(method="basinhopping", **kws)
  
file_path: lmfit-py/tests/test_basinhopping.py
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  from scipy.optimize import basinhopping
  import lmfit
label_desc: Use image node_id 5 for calling a global function with example usage: test_basinhopping_solver_options(minimizer_Alpine02) without return types