class_docstr: ``NameCountMessenger`` is the implementation of :func:`pyro.contrib.autoname.name_count`
class_docstr_tok: ["``","NameCountMessenger","``","is","the","implementation","of",":","func",":","`","pyro.contrib.autoname.name_count","`"]
code: def __enter__(self):
      self._names = set()
      return super().__enter__()
  
imports: import functools
  from pyro.poutine.messenger import Messenger
  from pyro.poutine.runtime import effectful
label_desc: Use image node_id 1 for calling the NameCountMessenger obj's underlying member method code with example usage: obj.__enter__() and returns: super