code: def test__clean_inputs3():
      lp = _LPProblem(
          c=[[1, 2]],
          A_ub=np.random.rand(2, 2),
          b_ub=[[1], [2]],
          A_eq=np.random.rand(2, 2),
          b_eq=[[1], [2]],
          bounds=[(0, 1)],
      )
  
      lp_cleaned = _clean_inputs(lp)
  
      assert_allclose(lp_cleaned.c, np.array([1, 2]))
      assert_allclose(lp_cleaned.b_ub, np.array([1, 2]))
      assert_allclose(lp_cleaned.b_eq, np.array([1, 2]))
      assert_equal(lp_cleaned.bounds, [(0, 1)] * 2)
  
      assert_(lp_cleaned.c.shape == (2,), "")
      assert_(lp_cleaned.b_ub.shape == (2,), "")
      assert_(lp_cleaned.b_eq.shape == (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 11 for calling a global function with example usage: test__clean_inputs3() without return types