code: def setUp(self):
      # A function that returns always infinity for initialization tests
      self.weirdfunc = lambda x: np.inf
      # 2-D bounds for testing function
      self.ld_bounds = [(-5.12, 5.12)] * 2
      # 4-D bounds for testing function
      self.hd_bounds = self.ld_bounds * 4
      # Number of values to be generated for testing visit function
      self.nbtestvalues = 5000
      self.high_temperature = 5230
      self.low_temperature = 0.1
      self.qv = 2.62
      self.seed = 1234
      self.rs = check_random_state(self.seed)
      self.nb_fun_call = 0
      self.ngev = 0
  
imports: from scipy.optimize import dual_annealing
  from scipy.optimize._dual_annealing import VisitingDistribution
  from scipy.optimize._dual_annealing import ObjectiveFunWrapper
  from scipy.optimize._dual_annealing import EnergyState
  from scipy.optimize._dual_annealing import LocalSearchWrapper
  from scipy.optimize import rosen, rosen_der
  import numpy
  from numpy.testing import assert_equal, TestCase, assert_allclose, assert_array_less
  from pytest import raises
  from scipy._lib._util import check_random_state
label_desc: Use image node_id 1 for calling the TestDualAnnealing obj's underlying member method code with example usage: obj.setUp() without return types