code: def test_debug():
      file = StringIO()
      rl = debug(posdec, file)
      rl(5)
      log = file.getvalue()
      file.close()
  
      assert posdec.__name__ in log
      assert "5" in log
      assert "4" in log
  
file_path: sympy/sympy/strategies/tests/test_core.py
imports: from __future__ import annotations
  from sympy.core.singleton import S
  from sympy.core.basic import Basic
  from sympy.strategies.core import null_safe, exhaust, memoize, condition, chain, tryit, do_one, debug, switch, minimize
  from io import StringIO
label_desc: Use image node_id 11 for calling a global function with example usage: test_debug() without return types