code: def test_bounds_repr():
      from numpy import array, inf  # so that eval works
  
      for args in (
          (-1.0, 5.0),
          (-1.0, np.inf, True),
          (np.array([1.0, -np.inf]), np.array([2.0, np.inf])),
          (
              np.array([1.0, -np.inf]),
              np.array([2.0, np.inf]),
              np.array([True, False]),
          ),
      ):
          bounds = Bounds(*args)
          bounds2 = eval(repr(Bounds(*args)))
          assert_array_equal(bounds.lb, bounds2.lb)
          assert_array_equal(bounds.ub, bounds2.ub)
          assert_array_equal(
              bounds.keep_feasible, bounds2.keep_feasible
          )
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/tests/test_constraints.py
imports: import pytest
  import numpy
  from numpy.testing import TestCase, assert_array_equal
  import scipy.sparse
  from scipy.optimize._constraints import Bounds, LinearConstraint, NonlinearConstraint, PreparedConstraint, new_bounds_to_old, old_bound_to_new, strict_bounds
label_desc: Use image node_id 5 for calling a global function with example usage: test_bounds_repr() without return types