code: def test_DomainScalar_eq():
      A = DomainScalar(QQ(2), QQ)
      assert A == A
      B = DomainScalar(ZZ(-5), ZZ)
      assert A != B
      C = DomainScalar(ZZ(2), ZZ)
      assert A != C
      D = [1]
      assert A != D
  
imports: from sympy.testing.pytest import raises
  from sympy.core.symbol import S
  from sympy.polys import ZZ, QQ
  from sympy.polys.matrices.domainscalar import DomainScalar
  from sympy.polys.matrices.domainmatrix import DomainMatrix
label_desc: Use image node_id 18 for calling a global function with example usage: test_DomainScalar_eq() without return types