code: def test_dummy_eq():
      x = Symbol("x")
      y = Symbol("y")
  
      u = Dummy("u")
  
      assert (u**2 + 1).dummy_eq(x**2 + 1) is True
      assert ((u**2 + 1) == (x**2 + 1)) is False
  
      assert (u**2 + y).dummy_eq(x**2 + y, x) is True
      assert (u**2 + y).dummy_eq(x**2 + y, y) is False
  
file_path: sympy/sympy/core/tests/test_equal.py
imports: from sympy.core.numbers import Rational
  from sympy.core.symbol import Dummy, Symbol
  from sympy.functions.elementary.exponential import exp
label_desc: Use image node_id 6 for calling a global function with example usage: test_dummy_eq() without return types