code: def test_debug():
      from io import StringIO
  
      file = StringIO()
      rl = debug(posdec, file)
      list(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/branch/tests/test_core.py
imports: from sympy.strategies.branch.core import exhaust, debug, multiplex, condition, notempty, chain, onaction, sfilter, yieldify, do_one, identity
label_desc: Use image node_id 7 for calling a global function with example usage: test_debug() without return types