code: def test_partial_foo_xr():
      p = partial(foo, 0, r=4)
      try:
          res1 = p(1)
          res2 = Exception()
      except:
          res1, res2 = sys.exc_info()[:2]
      try:
          re_1 = validate(p, 1)
          re_2 = Exception()
      except:
          re_1, re_2 = sys.exc_info()[:2]
      # print(res2)
      # print(re_2)
      assert res1 == re_1
      assert str(res2)[:24] == str(re_2)[:24]
  
file_path: klepto/klepto/tests/test_validate.py
imports: import sys
  from functools import partial
  from klepto import validate
label_desc: Use image node_id 9 for calling a global function with example usage: test_partial_foo_xr() without return types