code: def test_L5(self):
      # Lampinen ([5]) test problem 5
  
      def f(x):
          x = np.hstack(([0], x))  # 1-indexed to match reference
          fun = (
              np.sin(2 * np.pi * x[1]) ** 3
              * np.sin(2 * np.pi * x[2])
              / (x[1] ** 3 * (x[1] + x[2]))
          )
          return -fun  # maximize
  
      def c1(x):
          x = np.hstack(([0], x))  # 1-indexed to match reference
          return [x[1] ** 2 - x[2] + 1, 1 - x[1] + (x[2] - 4) ** 2]
  
      N = NonlinearConstraint(c1, -np.inf, 0)
      bounds = [(0, 10)] * 2
      constraints = N
  
      res = differential_evolution(
          f,
          bounds,
          strategy="rand1bin",
          seed=1234,
          constraints=constraints,
      )
  
      x_opt = (1.22797135, 4.24537337)
      f_opt = -0.095825
      assert_allclose(f(x_opt), f_opt, atol=2e-5)
      assert_allclose(res.fun, f_opt, atol=1e-4)
      assert res.success
      assert_(np.all(np.array(c1(res.x)) <= 0))
      assert_(np.all(res.x >= np.array(bounds)[:, 0]))
      assert_(np.all(res.x <= np.array(bounds)[:, 1]))
  
imports: import multiprocessing
  import platform
  from scipy.optimize._differentialevolution import DifferentialEvolutionSolver, _ConstraintWrapper
  from scipy.optimize import differential_evolution
  from scipy.optimize._constraints import Bounds, NonlinearConstraint, LinearConstraint
  from scipy.optimize import rosen
  from scipy.sparse import csr_matrix
  from scipy._lib._pep440 import Version
  import numpy
  from numpy.testing import assert_equal, assert_allclose, assert_almost_equal, assert_array_equal, assert_string_equal, assert_, suppress_warnings
  from pytest import raises, warns
  import pytest
label_desc: Use image node_id 51 for calling the TestDifferentialEvolutionSolver obj's underlying member method code with example usage: obj.test_L5() and returns: unknown, list