code: def test_good_bounds():
      c = [1, 2]
      outputs = _clean_inputs(c=c, bounds=None)
      assert_(outputs[5] == [(0, None)] * 2, "")
  
      outputs = _clean_inputs(c=c, bounds=(1, 2))
      assert_(outputs[5] == [(1, 2)] * 2, "")
  
      outputs = _clean_inputs(c=c, bounds=[(1, 2)])
      assert_(outputs[5] == [(1, 2)] * 2, "")
  
      outputs = _clean_inputs(c=c, bounds=[(1, np.inf)])
      assert_(outputs[5] == [(1, None)] * 2, "")
  
      outputs = _clean_inputs(c=c, bounds=[(-np.inf, 1)])
      assert_(outputs[5] == [(None, 1)] * 2, "")
  
      outputs = _clean_inputs(
          c=c, bounds=[(-np.inf, np.inf), (-np.inf, np.inf)]
      )
      assert_(outputs[5] == [(None, None)] * 2, "")
  
file_path: catboost/contrib/python/scipy/py2/scipy/optimize/tests/test__linprog_clean_inputs.py
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_, assert_allclose
  from pytest import raises
  from scipy.optimize._linprog_util import _clean_inputs
  from copy import deepcopy
label_desc: Use image node_id 13 for calling a global function with example usage: test_good_bounds() without return types