code: def test_type_errors():
      bad = "hello"
      c = [1, 2]
      A_ub = np.array([[1, 1], [2, 2]])
      b_ub = np.array([1, 1])
      A_eq = np.array([[1, 1], [2, 2]])
      b_eq = np.array([1, 1])
      bounds = [(0, 1)]
      assert_raises(
          TypeError,
          _clean_inputs,
          c=bad,
          A_ub=A_ub,
          b_ub=b_ub,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds=bounds,
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=bad,
          b_ub=b_ub,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds=bounds,
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=A_ub,
          b_ub=bad,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds=bounds,
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=A_ub,
          b_ub=b_ub,
          A_eq=bad,
          b_eq=b_eq,
          bounds=bounds,
      )
  
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=A_ub,
          b_ub=b_ub,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds=bad,
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=A_ub,
          b_ub=b_ub,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds="hi",
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=A_ub,
          b_ub=b_ub,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds=["hi"],
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=A_ub,
          b_ub=b_ub,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds=[("hi")],
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=A_ub,
          b_ub=b_ub,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds=[(1, "")],
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          c=c,
          A_ub=A_ub,
          b_ub=b_ub,
          A_eq=A_eq,
          b_eq=b_eq,
          bounds=[(1, 2), (1, "")],
      )
  
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 7 for calling a global function with example usage: test_type_errors() without return types