code: def test_nested_name_stack(self):
      @jax.named_scope("foo")
      def f(x):
          with jax.named_scope("bar"):
              return x + 1
  
      jaxpr = jax.make_jaxpr(f)(2).jaxpr
      for eqn in jaxpr.eqns:
          self.assertEqual(str(eqn.source_info.name_stack), "foo/bar")
  
imports: import functools
  from absl.testing import absltest
  import jax
  import jax.numpy
  from jax._src import core
  from jax import lax
  from jax._src.pjit import pjit
  from jax._src import linear_util
  from jax import config
  from jax._src import test_util
  from jax._src.lib import xla_client
label_desc: Use image node_id 4 for calling the NameStackTest obj's underlying member method code with example usage: obj.test_nested_name_stack() and returns: unknown