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 _pyro_sample(self, msg):
      msg["name"] = self._increment_name(msg["name"], "sample")
  
imports: import functools
  from pyro.poutine.messenger import Messenger
  from pyro.poutine.runtime import effectful
label_desc: Use image node_id 3 for calling the NameCountMessenger obj's underlying member method code with example usage: obj._pyro_sample(msg) without return types