code: def model(num_trials):
      with pyro.plate("data", num_trials.size(0)):
          phi_prior = dist.Uniform(
              num_trials.new_tensor(0.0), num_trials.new_tensor(1.0)
          )
          success_prob = pyro.sample("phi", phi_prior)
          return pyro.sample(
              "obs", dist.Binomial(num_trials, success_prob)
          )
  
file_path: pyro/tests/infer/test_abstract_infer.py
imports: import pytest
  import torch
  import pyro
  import pyro.distributions
  import pyro.optim
  import pyro.poutine
  from pyro.infer import SVI, Trace_ELBO
  from pyro.infer.autoguide import AutoLaplaceApproximation
  from pyro.infer.mcmc import MCMC, NUTS
  from tests.common import assert_equal
label_desc: Use image node_id 1 for calling a global function with example usage: model(num_trials) and returns: pyro