code: def test_bracket_order(self):
      # Confirm that order of points in bracket doesn't matter
      loc = np.linspace(-1, 1, 6)[:, np.newaxis]
      brackets = np.array(list(permutations([-5, 0, 5]))).T
      res = _chandrupatla_minimize(self.f, *brackets, args=(loc,))
      assert np.all(
          np.isclose(res.x, loc) | (res.fun == self.f(loc, loc))
      )
      ref = res.x[:, 0]  # all columns should be the same
      assert_allclose(*np.broadcast_arrays(res.x.T, ref), rtol=1e-15)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_allclose, assert_equal, assert_array_less
  from scipy import stats
  import scipy.optimize._chandrupatla
  from scipy.optimize._chandrupatla import _chandrupatla_minimize
  from itertools import permutations
label_desc: Use image node_id 10 for calling the TestChandrupatlaMinimize obj's underlying member method code with example usage: obj.test_bracket_order() without return types