code: def _test(self, params, n):
      x = PointMass(params=params)
      val_est = x.sample(n).shape.as_list()
      val_true = n + tf.convert_to_tensor(params).shape.as_list()
      self.assertEqual(val_est, val_true)
  
file_path: edward/tests/models/point_mass_sample_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  from edward.models import PointMass
label_desc: Use image node_id 1 for calling the test_pointmass_sample_class obj's underlying member method code with example usage: obj._test(params, n) without return types