code: def test_da_Alpine02(minimizer_Alpine02):
      """Test dual_annealing algorithm on Alpine02 function."""
      out = minimizer_Alpine02.minimize(method="dual_annealing")
      out_x = np.array([out.params["x0"].value, out.params["x1"].value])
  
      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 out.method == "dual_annealing"
  
file_path: lmfit-py/tests/test_dual_annealing.py
imports: import numpy
  from numpy.testing import assert_allclose
  import scipy
  import lmfit
label_desc: Use image node_id 4 for calling a global function with example usage: test_da_Alpine02(minimizer_Alpine02) without return types