code: def test_grad2():
      @jax.jit
      @jax.grad
      def f(x, y, z):
          x = eqxi.nondifferentiable_backward(x)
          x, y = eqx.error_if((x, y), z, "oops")
          return y
  
      f(1.0, 1.0, True)
  
file_path: equinox/tests/test_errors.py
imports: import equinox
  import equinox.internal
  import jax
  import jax.numpy
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_grad2() and returns: y