code: def _guide_from_model(model):
      try:
          with pyro_backend("contrib.funsor"):
              return handlers.block(
                  infer.config_enumerate(model, default="parallel"),
                  lambda msg: msg.get("is_observed", False),
              )
      except KeyError:  # for test collection without funsor
          return model
  
imports: import pytest
  import torch
  from pyroapi import pyro_backend
  from torch.distributions import constraints
  from pyro.ops.indexing import Vindex
label_desc: Use image node_id 9 for calling a global function with example usage: _guide_from_model(model) and returns: handlers, model