code: def test_brute():
      tree = ([inc, dec], square)
      fn = brute(tree, lambda x: -x)
  
      assert fn(2) == (2 + 1) ** 2
      assert fn(-2) == (-2 - 1) ** 2
  
      assert brute(inc)(1) == 2
  
file_path: sympy/sympy/strategies/tests/test_tree.py
imports: from sympy.strategies.tree import treeapply, greedy, allresults, brute
  from functools import partial, reduce
label_desc: Use image node_id 12 for calling a global function with example usage: test_brute() without return types