code: def test_data(self):
      with self.test_session():
          x = Normal(loc=0.0, scale=1.0)
          y = 2.0 * x
          x_data = tf.constant(0.0)
          y_data = tf.constant(0.0)
          ed.ppc(
              lambda xs, zs: tf.reduce_mean(xs[x]),
              {x: x_data},
              n_samples=1,
          )
          ed.ppc(
              lambda xs, zs: tf.reduce_mean(xs[y]),
              {y: y_data},
              n_samples=1,
          )
          self.assertRaises(
              TypeError,
              ed.ppc,
              lambda xs, zs: tf.reduce_mean(xs[y]),
              {"y": y_data},
              n_samples=1,
          )
  
file_path: edward/tests/criticisms/ppc_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import edward
  import tensorflow
  from edward.models import Normal
label_desc: Use image node_id 1 for calling the test_ppc_class obj's underlying member method code with example usage: obj.test_data() without return types