code: def test_inconsistent_dimensions():
      m = 2
      n = 4
      c = [1, 2, 3, 4]
  
      Agood = np.random.rand(m, n)
      Abad = np.random.rand(m, n + 1)
      bgood = np.random.rand(m)
      bbad = np.random.rand(m + 1)
      boundsbad = [(0, 1)] * (n + 1)
      assert_raises(
          ValueError, _clean_inputs, c=c, A_ub=Abad, b_ub=bgood
      )
      assert_raises(
          ValueError, _clean_inputs, c=c, A_ub=Agood, b_ub=bbad
      )
      assert_raises(
          ValueError, _clean_inputs, c=c, A_eq=Abad, b_eq=bgood
      )
      assert_raises(
          ValueError, _clean_inputs, c=c, A_eq=Agood, b_eq=bbad
      )
      assert_raises(ValueError, _clean_inputs, c=c, bounds=boundsbad)
  
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 6 for calling a global function with example usage: test_inconsistent_dimensions() without return types