code: def test_dm_sparse_rref_den_keep_domain(name, A, A_rref, den):
      A = A.to_sparse()
      A_rref_f, den_f, pivots_f = A.rref_den(keep_domain=False)
      A_rref_f = A_rref_f.to_field() / den_f
      _check_divide((A_rref_f, pivots_f), A_rref, den)
  
imports: from sympy import ZZ, QQ, ZZ_I, EX, Matrix, eye, zeros, symbols
  from sympy.polys.matrices import DM, DomainMatrix
  from sympy.polys.matrices.dense import ddm_irref_den, ddm_irref
  from sympy.polys.matrices.ddm import DDM
  from sympy.polys.matrices.sdm import SDM, sdm_irref, sdm_rref_den
  import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_dm_sparse_rref_den_keep_domain(name, A, A_rref, den) without return types