code: def test__row_tensor_product_errors():
      import pytest
  
      pytest.raises(ValueError, _row_tensor_product, [])
      pytest.raises(ValueError, _row_tensor_product, [np.arange(1, 5)])
      pytest.raises(
          ValueError,
          _row_tensor_product,
          [np.arange(1, 5), np.arange(1, 5)],
      )
      pytest.raises(
          ValueError,
          _row_tensor_product,
          [
              np.arange(1, 13).reshape((3, 4)),
              np.arange(1, 13).reshape((4, 3)),
          ],
      )
  
imports: import numpy
  from patsy.util import have_pandas, atleast_2d_column_default, no_pickling, assert_no_pickling, safe_string_eq
  from patsy.state import stateful_transform
label_desc: Use image node_id 7 for calling a global function with example usage: test__row_tensor_product_errors() without return types