code: def guide(K, data):
      assignment_probs = pyro.param(
          "assignment_probs",
          torch.ones(len(data), K) / K,
          constraint=constraints.unit_interval,
      )
      with pyro.plate("data"):
          return local_guide(assignment_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 3 for calling a global function with example usage: guide(K, data) and returns: local_guide