code: def check(s, expected):
      frame = sys._getframe()
      caller = frame.f_back
      p = PyExprParser(s)
      t = p.parse()
      result = t.eval(caller)
      assert str(result) == str(expected)
  
file_path: tensor-sensor/testing/test_tree_eval.py
imports: from tsensor.parsing import *
  import tsensor.ast
  import sys
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: check(s, expected) without return types