code: def iter_discrete_escape(trace, msg):
      return (
          (msg["type"] == "sample")
          and (not msg["is_observed"])
          and (msg["infer"].get("enumerate") == "sequential")
          and (msg["name"] not in trace)  # only sequential
      )
  
file_path: pyro/pyro/infer/enum.py
imports: import numbers
  from functools import partial
  from queue import LifoQueue
  from pyro import poutine
  from pyro.infer.util import is_validation_enabled
  from pyro.poutine import Trace
  from pyro.poutine.enum_messenger import enumerate_site
  from pyro.poutine.util import prune_subsample_sites
  from pyro.util import check_model_guide_match, check_site_shape, ignore_jit_warnings
label_desc: Use image node_id 1 for calling a global function with example usage: iter_discrete_escape(trace, msg) and returns: unknown