code: def test_reshape():
      array = MutableDenseNDimArray(range(50), 50)
      assert array.shape == (50,)
      assert array.rank() == 1
  
      array = array.reshape(5, 5, 2)
      assert array.shape == (5, 5, 2)
      assert array.rank() == 3
      assert len(array) == 50
  
imports: from copy import copy
  from sympy.tensor.array.dense_ndim_array import MutableDenseNDimArray
  from sympy.core.function import diff
  from sympy.core.numbers import Rational
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.core.sympify import sympify
  from sympy.matrices import SparseMatrix
  from sympy.matrices import Matrix
  from sympy.tensor.array.sparse_ndim_array import MutableSparseNDimArray
  from sympy.testing.pytest import raises
label_desc: Use image node_id 3 for calling a global function with example usage: test_reshape() without return types