code: def test_type_errors():
      lp = _LPProblem(
          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)],
      )
      bad = "hello"
  
      assert_raises(TypeError, _clean_inputs, lp._replace(c=bad))
      assert_raises(TypeError, _clean_inputs, lp._replace(A_ub=bad))
      assert_raises(TypeError, _clean_inputs, lp._replace(b_ub=bad))
      assert_raises(TypeError, _clean_inputs, lp._replace(A_eq=bad))
      assert_raises(TypeError, _clean_inputs, lp._replace(b_eq=bad))
  
      assert_raises(ValueError, _clean_inputs, lp._replace(bounds=bad))
      assert_raises(ValueError, _clean_inputs, lp._replace(bounds="hi"))
      assert_raises(
          ValueError, _clean_inputs, lp._replace(bounds=["hi"])
      )
      assert_raises(
          ValueError, _clean_inputs, lp._replace(bounds=[("hi")])
      )
      assert_raises(
          ValueError, _clean_inputs, lp._replace(bounds=[(1, "")])
      )
      assert_raises(
          ValueError,
          _clean_inputs,
          lp._replace(bounds=[(1, 2), (1, "")]),
      )
      assert_raises(
          TypeError,
          _clean_inputs,
          lp._replace(bounds=[(1, date(2020, 2, 29))]),
      )
      assert_raises(
          ValueError, _clean_inputs, lp._replace(bounds=[[[1, 2]]])
      )
  
file_path: scipy/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 scipy._lib._util import VisibleDeprecationWarning
  from copy import deepcopy
  from datetime import date
label_desc: Use image node_id 7 for calling a global function with example usage: test_type_errors() without return types