code: def test_onaction():
      L = []
  
      def record(fn, input, output):
          L.append((input, output))
  
      list(onaction(inc, record)(2))
      assert L == [(2, 3)]
  
      list(onaction(identity, record)(2))
      assert L == [(2, 3)]
  
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 13 for calling a global function with example usage: test_onaction() without return types