code: def _check_divide(result, rref_ans, den_ans):
      """Check the divided result."""
      rref, pivots = result
      if isinstance(rref, (DDM, SDM, list, dict)):
          assert type(pivots) is list
          pivots = tuple(pivots)
      rref_ans = rref_ans.to_field() / den_ans
      rref = _to_DM(rref, rref_ans)
      assert rref == rref_ans
      assert _pivots(rref) == pivots
  
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 4 for calling a global function with example usage: _check_divide(result, rref_ans, den_ans) without return types