code: def test_rebuild_immutable_arrays():
      sparr = ImmutableSparseNDimArray(range(10, 34), (2, 3, 4))
      densarr = ImmutableDenseNDimArray(range(10, 34), (2, 3, 4))
  
      assert sparr == sparr.func(*sparr.args)
      assert densarr == densarr.func(*densarr.args)
  
imports: from copy import copy
  from sympy.tensor.array.dense_ndim_array import ImmutableDenseNDimArray
  from sympy.core.containers import Dict
  from sympy.core.function import diff
  from sympy.core.numbers import Rational
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, symbols
  from sympy.matrices import SparseMatrix
  from sympy.tensor.indexed import Indexed, IndexedBase
  from sympy.matrices import Matrix
  from sympy.tensor.array.sparse_ndim_array import ImmutableSparseNDimArray
  from sympy.testing.pytest import raises
label_desc: Use image node_id 12 for calling a global function with example usage: test_rebuild_immutable_arrays() without return types