code: def test_RecurrenceOperatorEqPoly():
      n = symbols("n", integer=True)
      R, Sn = RecurrenceOperators(QQ.old_poly_ring(n), "Sn")
      rr = RecurrenceOperator([n**2, 0, 0], R)
      rr2 = RecurrenceOperator([n**2, 1, n], R)
      assert not rr == rr2
  
      # polynomial comparison issue, see https://github.com/sympy/sympy/pull/15799
      # should work once that is solved
      # d = rr.listofpoly[0]
      # assert rr == d
  
      d2 = rr2.listofpoly[0]
      assert not rr2 == d2
  
imports: from sympy.holonomic.recurrence import RecurrenceOperators, RecurrenceOperator
  from sympy.core.symbol import symbols
  from sympy.polys.domains.rationalfield import QQ
label_desc: Use image node_id 2 for calling a global function with example usage: test_RecurrenceOperatorEqPoly() without return types