code: def check_binary_func(fun, independent=False):
      with warnings.catch_warnings(record=independent) as w:
          x, y = 0.7, 1.8
          a = grad(fun)(x, y)
          b = nd(lambda x: fun(x, y), x)
          check_close(a, b)
  
          a = grad(fun, 1)(x, y)
          b = nd(lambda y: fun(x, y), y)
          check_close(a, b)
  
imports: from __future__ import absolute_import
  import warnings
  from autograd.core import make_vjp
  from autograd.wrap_util import unary_to_nary
label_desc: Use image node_id 4 for calling a global function with example usage: check_binary_func(fun, independent) without return types