code: def test_call_primitive_jaxpr_should_not_store_outer_name_stack(self):
      @jax.named_scope("foo")
      def f(x):
          @lu.wrap_init
          @jax.named_scope("bar")
          def _f(x):
              return [x + 1]
  
          return core.call(_f, x)[0]
  
      jaxpr = jax.make_jaxpr(f)(2).jaxpr
      self.assertEqual(
          str(
              jaxpr.eqns[0]
              .params["call_jaxpr"]
              .eqns[0]
              .source_info.name_stack
          ),
          "bar",
      )
  
      hlo_text = _get_hlo(f)(2)
      self.assertIn("foo/jit(core_call)/bar", hlo_text)
  
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 6 for calling the NameStackTest obj's underlying member method code with example usage: obj.test_call_primitive_jaxpr_should_not_store_outer_name_stack() and returns: core, list