code: def _test_model_parameter(self, Inference, *args, **kwargs):
      with self.test_session() as sess:
          x_data = np.array([0, 1, 0, 0, 0, 0, 0, 0, 0, 1])
  
          p = tf.sigmoid(tf.Variable(0.5))
          x = Bernoulli(probs=p, sample_shape=10)
  
          inference = Inference({}, data={x: x_data})
          inference.run(*args, **kwargs)
  
          self.assertAllClose(p.eval(), 0.2, rtol=5e-2, atol=5e-2)
  
file_path: edward/tests/inferences/wakesleep_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import edward
  import numpy
  import tensorflow
  from edward.models import Bernoulli, Normal
label_desc: Use image node_id 1 for calling the test_wakesleep_class obj's underlying member method code with example usage: obj._test_model_parameter(Inference) without return types