code: def test_treeapply():
      tree = ([3, 3], [4, 1], 2)
      assert treeapply(tree, {list: min, tuple: max}) == 3
      assert treeapply(tree, {list: add, tuple: mul}) == 60
  
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 7 for calling a global function with example usage: test_treeapply() without return types