code: def test__strategy_resolves(self):
      # test that the correct mutation function is resolved by
      # different requested strategy arguments
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="best1exp"
      )
      assert_equal(solver.strategy, "best1exp")
      assert_equal(solver.mutation_func.__name__, "_best1")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="best1bin"
      )
      assert_equal(solver.strategy, "best1bin")
      assert_equal(solver.mutation_func.__name__, "_best1")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="rand1bin"
      )
      assert_equal(solver.strategy, "rand1bin")
      assert_equal(solver.mutation_func.__name__, "_rand1")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="rand1exp"
      )
      assert_equal(solver.strategy, "rand1exp")
      assert_equal(solver.mutation_func.__name__, "_rand1")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="rand2exp"
      )
      assert_equal(solver.strategy, "rand2exp")
      assert_equal(solver.mutation_func.__name__, "_rand2")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="best2bin"
      )
      assert_equal(solver.strategy, "best2bin")
      assert_equal(solver.mutation_func.__name__, "_best2")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="rand2bin"
      )
      assert_equal(solver.strategy, "rand2bin")
      assert_equal(solver.mutation_func.__name__, "_rand2")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="rand2exp"
      )
      assert_equal(solver.strategy, "rand2exp")
      assert_equal(solver.mutation_func.__name__, "_rand2")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="randtobest1bin"
      )
      assert_equal(solver.strategy, "randtobest1bin")
      assert_equal(solver.mutation_func.__name__, "_randtobest1")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="randtobest1exp"
      )
      assert_equal(solver.strategy, "randtobest1exp")
      assert_equal(solver.mutation_func.__name__, "_randtobest1")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="currenttobest1bin"
      )
      assert_equal(solver.strategy, "currenttobest1bin")
      assert_equal(solver.mutation_func.__name__, "_currenttobest1")
  
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, strategy="currenttobest1exp"
      )
      assert_equal(solver.strategy, "currenttobest1exp")
      assert_equal(solver.mutation_func.__name__, "_currenttobest1")
  
imports: import multiprocessing
  from scipy.optimize import _differentialevolution
  from scipy.optimize._differentialevolution import DifferentialEvolutionSolver
  from scipy.optimize import differential_evolution
  import numpy
  from scipy.optimize import rosen
  from numpy.testing import assert_equal, assert_allclose, assert_almost_equal, assert_string_equal, assert_
  from pytest import raises, warns
label_desc: Use image node_id 4 for calling the TestDifferentialEvolutionSolver obj's underlying member method code with example usage: obj.test__strategy_resolves() without return types