code: def test_reshape_tuple():
      a = np.arange(3 * 7 * 2) + 1
      x = m.reshape_tuple(a, (3, 7, 2))
      assert x.shape == (3, 7, 2)
      assert list(x[1][4]) == [23, 24]
      y = m.reshape_tuple(x, (x.size,))
      assert y.shape == (42,)
      with pytest.raises(ValueError) as excinfo:
          m.reshape_tuple(a, (3, 7, 1))
      assert (
          str(excinfo.value)
          == "cannot reshape array of size 42 into shape (3,7,1)"
      )
      with pytest.raises(ValueError) as excinfo:
          m.reshape_tuple(a, ())
      assert (
          str(excinfo.value)
          == "cannot reshape array of size 42 into shape ()"
      )
  
imports: import pytest
  import env
  from pybind11_tests import numpy_array
label_desc: Use image node_id 30 for calling a global function with example usage: test_reshape_tuple() without return types