code: def test_custom_jvp(self, filter_mode):
      def err(*args):
          assert False
          return args
  
      @jax.custom_jvp
      def f(x):
          return err(x)
  
      @f.defjvp
      def f_jvp(x, tx):
          x = err(x)
          return x, tx
  
      check_filtered_stack_trace(
          self,
          AssertionError,
          lambda: f(1.0),
          [("f", "return err(x)"), ("err", "assert False")],
          filter_mode=filter_mode,
      )
      check_filtered_stack_trace(
          self,
          AssertionError,
          lambda: jax.jvp(f, [1.0], [1.0]),
          [("f_jvp", "x = err(x)"), ("err", "assert False")],
          filter_mode=filter_mode,
      )
  
imports: import re
  import sys
  import traceback
  from absl.testing import absltest
  from absl.testing import parameterized
  import jax
  import jax.numpy
  from jax import grad, jit, vmap, lax
  from jax._src import config
  from jax._src import core
  from jax._src import source_info_util
  from jax._src import test_util
  from jax._src import traceback_util
label_desc: Use image node_id 13 for calling the FilteredTracebackTest obj's underlying member method code with example usage: obj.test_custom_jvp(filter_mode) and returns: args, err, x,  tx