code: def test_switch():
      def key(x: int) -> int:
          return x % 3
  
      rl = switch(key, {0: inc, 1: dec})
      assert rl(3) == 4
      assert rl(4) == 3
      assert rl(5) == 5
  
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 12 for calling a global function with example usage: test_switch() and returns: unknown