class_docstr: Context manager that when active adds a new name in the hierarcy.
class_docstr_tok: ["Context","manager","that","when","active","adds","a","new","name","in","the","hierarcy","."]
code: def __exit__(self, exc_type, exc_value, traceback):
      try:
          return self.__stack.__exit__(exc_type, exc_value, traceback)
      finally:
          self.__entered = False
          self.__stack = None
  
imports: from collections.abc import Mapping
  import contextlib
  import functools
  import inspect
  import re
  from typing import Any, Callable, ContextManager, NamedTuple, Optional, Protocol, TypeVar
  from haiku._src import base
  from haiku._src import config
  from haiku._src import data_structures
  from haiku._src import utils
  import jax
  import jax.numpy
label_desc: Use image node_id 3 for calling the NameScope obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_value, traceback) and returns: self