code: def test_DDM_setitem():
      dm = DDM.zeros((3, 3), ZZ)
      dm.setitem(0, 0, 1)
      dm.setitem(1, -2, 1)
      dm.setitem(-1, -1, 1)
      assert dm == DDM.eye(3, ZZ)
  
      raises(IndexError, lambda: dm.setitem(3, 3, 0))
  
imports: from sympy.testing.pytest import raises
  from sympy.external.gmpy import GROUND_TYPES
  from sympy.polys import ZZ, QQ
  from sympy.polys.matrices.ddm import DDM
  from sympy.polys.matrices.exceptions import DMShapeError, DMNonInvertibleMatrixError, DMDomainError, DMBadInputError
label_desc: Use image node_id 28 for calling a global function with example usage: test_DDM_setitem() without return types