code: def test_converting_functions():
      arr_list = [1, 2, 3, 4]
      arr_matrix = Matrix(((1, 2), (3, 4)))
  
      # list
      arr_ndim_array = MutableDenseNDimArray(arr_list, (2, 2))
      assert isinstance(arr_ndim_array, MutableDenseNDimArray)
      assert arr_matrix.tolist() == arr_ndim_array.tolist()
  
      # Matrix
      arr_ndim_array = MutableDenseNDimArray(arr_matrix)
      assert isinstance(arr_ndim_array, MutableDenseNDimArray)
      assert arr_matrix.tolist() == arr_ndim_array.tolist()
      assert arr_matrix.shape == arr_ndim_array.shape
  
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 9 for calling a global function with example usage: test_converting_functions() without return types