code: def test_has():
      assert cot(x).has(x)
      assert cot(x).has(cot)
      assert not cot(x).has(sin)
      assert sin(x).has(x)
      assert sin(x).has(sin)
      assert not sin(x).has(cot)
      assert exp(x).has(exp)
  
imports: from sympy.core.numbers import I
  from sympy.core.symbol import symbols
  from sympy.functions.elementary.exponential import exp
  from sympy.functions.elementary.trigonometric import cos, cot, sin
  from sympy.testing.pytest import _both_exp_pow
label_desc: Use image node_id 1 for calling a global function with example usage: test_has() without return types