code: def test_comparison_grads():
      compare_funs = [
          lambda x, y: np.sum(x < x) + 0.0,
          lambda x, y: np.sum(x <= y) + 0.0,
          lambda x, y: np.sum(x > y) + 0.0,
          lambda x, y: np.sum(x >= y) + 0.0,
          lambda x, y: np.sum(x == y) + 0.0,
          lambda x, y: np.sum(x != y) + 0.0,
      ]
  
      with warnings.catch_warnings(record=True) as w:
          for arg1, arg2 in arg_pairs():
              zeros = (arg1 + arg2) * 0  # get correct shape
              for fun in compare_funs:
                  assert np.all(grad(fun)(arg1, arg2) == zeros)
                  assert np.all(
                      grad(fun, argnum=1)(arg1, arg2) == zeros
                  )
  
file_path: autograd/tests/test_binary_ops.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  import warnings
  import autograd.numpy
  import autograd.numpy.random
  import itertools
  from autograd.test_util import check_grads
  from autograd import grad, value_and_grad
label_desc: Use image node_id 10 for calling a global function with example usage: test_comparison_grads() without return types