code: def mean_field_guide(batch_tensor, design):
      # A batched variable
      w_p = pyro.param("w_p", 0.2 * torch.ones(batch_tensor.shape))
      u_p = pyro.param("u_p", 0.5 * torch.ones(batch_tensor.shape))
      pyro.sample("w", dist.Bernoulli(w_p))
      pyro.sample("u", dist.Bernoulli(u_p))
  
file_path: pyro/tests/infer/autoguide/test_mean_field_entropy.py
imports: import pytest
  import scipy.special
  import torch
  import pyro
  import pyro.distributions
  from pyro.infer.autoguide.utils import mean_field_entropy
  from tests.common import assert_equal
label_desc: Use image node_id 1 for calling a global function with example usage: mean_field_guide(batch_tensor, design) without return types