code: def test_basinhopping_bounds(minimizer_Alpine02):
      """Test basinhopping algorithm with bounds."""
      # change boundaries of parameters
      pars_bounds = lmfit.Parameters()
      pars_bounds.add_many(
          ("x0", 1.0, True, 5.0, 15.0), ("x1", 1.0, True, 2.5, 7.5)
      )
  
      kws = {"minimizer_kwargs": {"method": "L-BFGS-B"}, "seed": 7}
      out = minimizer_Alpine02.minimize(
          params=pars_bounds, method="basinhopping", **kws
      )
      assert 5.0 <= out.params["x0"].value <= 15.0
      assert 2.5 <= out.params["x1"].value <= 7.5
  
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 4 for calling a global function with example usage: test_basinhopping_bounds(minimizer_Alpine02) without return types