class_docstr: Exception for exiting nonlocally from poutine execution.
  
  Used by poutine.EscapeMessenger to return site information.
docstr: Reset the state of the frames remaining in the stack.
  Necessary for multiple re-executions in poutine.queue.
docstr_tok: ["Reset","the","state","of","the","frames","remaining","in","the","stack",".","Necessary","for","multiple","re-executions","in","poutine.queue","."]
code: def reset_stack(self) -> None:
      """
      Reset the state of the frames remaining in the stack.
      Necessary for multiple re-executions in poutine.queue.
      """
      from pyro.poutine.block_messenger import BlockMessenger
  
      for frame in reversed(_PYRO_STACK):
          frame._reset()
          if isinstance(frame, BlockMessenger) and frame.hide_fn(
              self.site
          ):
              break
  
imports: import functools
  from typing import TYPE_CHECKING, Callable, Dict, Generic, List, Optional, Set, Tuple, TypeVar, Union, overload
  import torch
  from typing_extensions import Literal, ParamSpec, TypedDict
  from pyro.params.param_store import _MODULE_NAMESPACE_DIVIDER, ParamStoreDict
label_desc: Use image node_id 2 for calling the NonlocalExit obj's underlying member method code with example usage: obj.reset_stack() without return types