code: def test_DMP___init__():
      f = DMP([[ZZ(0)], [], [ZZ(0), ZZ(1), ZZ(2)], [ZZ(3)]], ZZ)
  
      assert f._rep == [[1, 2], [3]]
      assert f.dom == ZZ
      assert f.lev == 1
  
      f = DMP([[ZZ(1), ZZ(2)], [ZZ(3)]], ZZ, 1)
  
      assert f._rep == [[1, 2], [3]]
      assert f.dom == ZZ
      assert f.lev == 1
  
      f = DMP.from_dict({(1, 1): ZZ(1), (0, 0): ZZ(2)}, 1, ZZ)
  
      assert f._rep == [[1, 0], [2]]
      assert f.dom == ZZ
      assert f.lev == 1
  
imports: from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.polys.domains import ZZ, QQ
  from sympy.polys.polyclasses import DMP, DMF, ANP
  from sympy.polys.polyerrors import CoercionFailed, ExactQuotientFailed, NotInvertible
  from sympy.polys.specialpolys import f_polys
  from sympy.testing.pytest import raises, warns_deprecated_sympy
label_desc: Use image node_id 1 for calling a global function with example usage: test_DMP___init__() without return types