code: def test_DDM_mul():
      A = DDM([[ZZ(1)]], (1, 1), ZZ)
      A2 = DDM([[ZZ(2)]], (1, 1), ZZ)
      assert A * ZZ(2) == A2
      assert ZZ(2) * A == A2
      raises(TypeError, lambda: [[1]] * A)
      raises(TypeError, lambda: A * [[1]])
  
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 14 for calling a global function with example usage: test_DDM_mul() without return types