code: def check(s, expected_repr, expect_str=None):
      p = PyExprParser(s, hush_errors=False)
      t = p.parse()
  
      s = re.sub(r"\s+", "", s)
      result_str = str(t)
      result_str = re.sub(r"\s+", "", result_str)
      if expect_str:
          s = expect_str
      assert result_str == s
  
      result_repr = repr(t)
      result_repr = re.sub(r"\s+", "", result_repr)
      expected_repr = re.sub(r"\s+", "", expected_repr)
      # print("result", result_repr)
      # print("expected", expected)
      assert result_repr == expected_repr
  
imports: from tsensor.parsing import *
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: check(s, expected_repr, expect_str) without return types