code: def test_minimize():
      def key(x: int) -> int:
          return -x
  
      rl = minimize(inc, dec)
      assert rl(4) == 3
  
      rl = minimize(inc, dec, objective=key)
      assert rl(4) == 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 13 for calling a global function with example usage: test_minimize() and returns: unknown