code: def test_minimize_simple(self):
      # Minimize with method='COBYLA'
      cons = (
          {"type": "ineq", "fun": self.con1},
          {"type": "ineq", "fun": self.con2},
      )
      sol = minimize(
          self.fun,
          self.x0,
          method="cobyla",
          constraints=cons,
          options=self.opts,
      )
      assert_allclose(sol.x, self.solution, atol=1e-4)
      assert_(sol.success, sol.message)
      assert_(sol.maxcv < 1e-5, sol)
      assert_(sol.nfev < 70, sol)
      assert_(sol.fun < self.fun(self.solution) + 1e-3, sol)
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/tests/test_cobyla.py
imports: import math
  import numpy
  from numpy.testing import assert_allclose, assert_
  from scipy.optimize import fmin_cobyla, minimize
label_desc: Use image node_id 6 for calling the TestCobyla obj's underlying member method code with example usage: obj.test_minimize_simple() without return types