code: def test_bad_bounds():
      lp = _LPProblem(c=[1, 2])
  
      assert_raises(
          ValueError, _clean_inputs, lp._replace(bounds=(1, 2, 2))
      )
      assert_raises(
          ValueError, _clean_inputs, lp._replace(bounds=[(1, 2, 2)])
      )
      assert_raises(
          ValueError,
          _clean_inputs,
          lp._replace(bounds=[(1, 2), (1, 2, 2)]),
      )
      assert_raises(
          ValueError,
          _clean_inputs,
          lp._replace(bounds=[(1, 2), (1, 2), (1, 2)]),
      )
  
      lp = _LPProblem(c=[1, 2, 3, 4])
  
      assert_raises(
          ValueError,
          _clean_inputs,
          lp._replace(bounds=[(1, 2, 3, 4), (1, 2, 3, 4)]),
      )
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/tests/test__linprog_clean_inputs.py
imports: import numpy
  from numpy.testing import assert_, assert_allclose, assert_equal
  from pytest import raises
  from scipy.optimize._linprog_util import _clean_inputs, _LPProblem
  from copy import deepcopy
  from datetime import date
label_desc: Use image node_id 12 for calling a global function with example usage: test_bad_bounds() without return types