code: def test_jit_jit():
      num_traces = 0
  
      @eqx.filter_jit
      @eqx.filter_jit
      def f(x):
          nonlocal num_traces
          num_traces += 1
          return x + 1
  
      assert f(jnp.array(1)) == 2
      assert f(jnp.array(2)) == 3
      assert num_traces == 1
  
      @eqx.filter_jit
      def g(x):
          nonlocal num_traces
          num_traces += 1
          return x + 1
  
      assert eqx.filter_jit(g)(jnp.array(1)) == 2
      assert eqx.filter_jit(g)(jnp.array(2)) == 3
      assert num_traces == 2
  
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 5 for calling a global function with example usage: test_jit_jit() and returns: unknown, unknown