code: def test_jit_vmap():
      num_traces = 0
  
      def f(x):
          nonlocal num_traces
          num_traces += 1
          return x + 1
  
      out = eqx.filter_jit(eqx.filter_vmap(f))(jnp.array([1, 2]))
      assert tree_allclose(out, jnp.array([2, 3]))
      assert num_traces == 1
  
      out = eqx.filter_jit(eqx.filter_vmap(f))(jnp.array([2, 3]))
      assert tree_allclose(out, jnp.array([3, 4]))
      assert num_traces == 1
  
imports: import warnings
  from typing import Union
  import equinox
  import jax
  import jax.numpy
  import jax.random
  import jax.tree_util
  import pytest
  from .helpers import tree_allclose
label_desc: Use image node_id 7 for calling a global function with example usage: test_jit_vmap() and returns: unknown