class_docstr: Handler to set the random number generator to a pre-defined state by setting its
  seed. This is the same as calling :func:`pyro.set_rng_seed` before the
  call to `fn`. This handler has no additional effect on primitive statements on the
  standard Pyro backend, but it might intercept ``pyro.sample`` calls in other
  backends. e.g. the NumPy backend.
  
  :param fn: a stochastic function (callable containing Pyro primitive calls).
  :param int rng_seed: rng seed.
code: def __init__(self, rng_seed: int) -> None:
      assert isinstance(rng_seed, int)
      self.rng_seed = rng_seed
      super().__init__()
  
file_path: pyro/pyro/poutine/seed_messenger.py
imports: from types import TracebackType
  from typing import Optional, Type
  from pyro.poutine.messenger import Messenger
  from pyro.util import get_rng_state, set_rng_seed, set_rng_state
label_desc: Use image node_id 1 to create a new SeedMessenger object from inherited base classes: Messenger with example: obj = SeedMessenger(rng_seed)