code: def test_2d_nograd(self):
      # test 2d minimizations without gradient
      i = 1
      res = basinhopping(
          func2d_nograd,
          self.x0[i],
          minimizer_kwargs=self.kwargs_nograd,
          niter=self.niter,
          disp=self.disp,
      )
      assert_almost_equal(res.x, self.sol[i], self.tol)
  
imports: from __future__ import division, print_function, absolute_import
  import copy
  from numpy.testing import assert_almost_equal, assert_equal, assert_
  from pytest import raises
  import numpy
  from numpy import cos, sin
  from scipy.optimize import basinhopping, OptimizeResult
  from scipy.optimize._basinhopping import Storage, RandomDisplacement, Metropolis, AdaptiveStepsize
label_desc: Use image node_id 7 for calling the TestBasinHopping obj's underlying member method code with example usage: obj.test_2d_nograd() without return types