code: def test_DDM_ones():
      ddmone = DDM.ones((2, 3), QQ)
      assert list(ddmone) == [[QQ(1)] * 3] * 2
      assert ddmone.shape == (2, 3)
      assert ddmone.domain == QQ
  
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 7 for calling a global function with example usage: test_DDM_ones() without return types