class_docstr: Exact inference by enumerating over all possible executions
code: def _traces(self, *args, **kwargs):
      q = queue.Queue()
      q.put(poutine.Trace())
      p = poutine.trace(
          poutine.queue(self.model, queue=q, max_tries=self.max_tries)
      )
      while not q.empty():
          tr = p.get_trace(*args, **kwargs)
          yield tr, tr.log_prob_sum()
  
imports: import collections
  import functools
  import queue
  import torch
  import pyro.distributions
  import pyro.poutine
  from pyro.distributions.util import logsumexp
  from pyro.infer.abstract_infer import TracePosterior
  from pyro.poutine.runtime import NonlocalExit
label_desc: Use image node_id 2 for calling the Search obj's underlying member method code with example usage: obj._traces() without return types