code: def test_polymatrix_eq():
      assert (PolyMatrix([x]) == PolyMatrix([x])) is True
      assert (PolyMatrix([y]) == PolyMatrix([x])) is False
      assert (PolyMatrix([x]) != PolyMatrix([x])) is False
      assert (PolyMatrix([y]) != PolyMatrix([x])) is True
  
      assert (
          PolyMatrix([[x, y]])
          != PolyMatrix([x, y])
          == PolyMatrix([[x], [y]])
      )
  
      assert PolyMatrix([x], ring=QQ[x]) != PolyMatrix([x], ring=ZZ[x])
  
      assert PolyMatrix([x]) != Matrix([x])
      assert PolyMatrix([x]).to_Matrix() == Matrix([x])
  
      assert PolyMatrix([1], x) == PolyMatrix([1], x)
      assert PolyMatrix([1], x) != PolyMatrix([1], y)
  
file_path: sympy/sympy/polys/tests/test_polymatrix.py
imports: from sympy.testing.pytest import raises
  from sympy.polys.polymatrix import PolyMatrix
  from sympy.polys import Poly
  from sympy.core.singleton import S
  from sympy.matrices.dense import Matrix
  from sympy.polys.domains.integerring import ZZ
  from sympy.polys.domains.rationalfield import QQ
  from sympy.abc import x, y
label_desc: Use image node_id 3 for calling a global function with example usage: test_polymatrix_eq() without return types