code: def beta_guide(num_trials):
      phi_c0 = pyro.param(
          "phi_c0",
          num_trials.new_tensor(5.0).expand([num_trials.size(0)]),
      )
      phi_c1 = pyro.param(
          "phi_c1",
          num_trials.new_tensor(5.0).expand([num_trials.size(0)]),
      )
      with pyro.plate("data", num_trials.size(0)):
          phi_posterior = dist.Beta(
              concentration0=phi_c0, concentration1=phi_c1
          )
          pyro.sample("phi", phi_posterior)
  
file_path: pyro/tests/infer/test_predictive.py
imports: import pytest
  import torch
  import pyro
  import pyro.distributions
  import pyro.optim
  import pyro.poutine
  from pyro.infer import SVI, Predictive, Trace_ELBO
  from pyro.infer.autoguide import AutoDelta, AutoDiagonalNormal
  from tests.common import assert_close
label_desc: Use image node_id 3 for calling a global function with example usage: beta_guide(num_trials) without return types