code: def test_chain():
      assert list(chain()(2)) == [2]  # identity
      assert list(chain(inc, inc)(2)) == [4]
      assert list(chain(branch5, inc)(4)) == [4]
      assert set(chain(branch5, inc)(5)) == {5, 7}
      assert list(chain(inc, branch5)(5)) == [7]
  
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 12 for calling a global function with example usage: test_chain() without return types