code: def test_shgo_scipy_vs_lmfit_2():
      """Test SHGO algorithm in lmfit versus SciPy."""
      bounds = [(-512, 512), (-512, 512)]
      result_scipy = scipy.optimize.shgo(
          eggholder, bounds, n=60, iters=5, sampling_method="sobol"
      )
  
      pars = lmfit.Parameters()
      pars.add_many(
          ("x0", 0, True, -512, 512), ("x1", 0, True, -512, 512)
      )
      mini = lmfit.Minimizer(eggholder_lmfit, pars)
      result = mini.minimize(
          method="shgo", n=60, iters=5, sampling_method="sobol"
      )
      assert_allclose(result_scipy.fun, result.residual)
      assert_allclose(result_scipy.xl, result.shgo_xl)
      assert_allclose(result_scipy.funl, result.shgo_funl)
  
file_path: lmfit-py/tests/test_shgo.py
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  import scipy
  import lmfit
label_desc: Use image node_id 4 for calling a global function with example usage: test_shgo_scipy_vs_lmfit_2() without return types