code: def test_maxiter_none_GH5731(self):
      # Pre 0.17 the previous default for maxiter and maxfun was None.
      # the numerical defaults are now 1000 and np.inf. However, some scripts
      # will still supply None for both of those, this will raise a TypeError
      # in the solve method.
      solver = DifferentialEvolutionSolver(
          rosen, self.bounds, maxiter=None, maxfun=None
      )
      solver.solve()
  
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 31 for calling the TestDifferentialEvolutionSolver obj's underlying member method code with example usage: obj.test_maxiter_none_GH5731() without return types