class_docstr: ``ScopeMessenger`` is the implementation of :func:`pyro.contrib.autoname.scope`
class_docstr_tok: ["``","ScopeMessenger","``","is","the","implementation","of",":","func",":","`","pyro.contrib.autoname.scope","`"]
code: def __init__(self, prefix=None, inner=None):
      super().__init__()
      self.prefix = prefix
      self.inner = inner
  
imports: import functools
  from pyro.poutine.messenger import Messenger
  from pyro.poutine.runtime import effectful
label_desc: Use image node_id 1 to create a new ScopeMessenger object from inherited base classes: Messenger with example: obj = ScopeMessenger(prefix, inner)