code: def guide_constrained_model(data):
      q = pyro.param(
          "q", ops.exp(torch.randn(3)), constraint=constraints.simplex
      )
      pyro.sample("x", dist.Categorical(q))
  
imports: import warnings
  import pytest
  import torch
  from pytest import approx
  from torch.distributions import constraints
  from pyro.generic import distributions
  from pyro.generic import infer, ops, optim, pyro, pyro_backend
  from tests.common import assert_close, xfail_param
label_desc: Use image node_id 6 for calling a global function with example usage: guide_constrained_model(data) without return types