code: def local_guide(probs):
      return pyro.sample("assignment", dist.Categorical(probs))
  
file_path: pyro/examples/contrib/autoname/scoping_mixture.py
imports: import argparse
  import torch
  from torch.distributions import constraints
  import pyro
  import pyro.distributions
  import pyro.optim
  from pyro.contrib.autoname import scope
  from pyro.infer import SVI, TraceEnum_ELBO, config_enumerate
label_desc: Use image node_id 4 for calling a global function with example usage: local_guide(probs) and returns: pyro