code: def test_1d(self):
      with self.test_session():
          self._test(np.array([0.5]), [1])
          self._test(np.array([0.5]), [5])
          self._test(np.array([0.2, 0.8]), [1])
          self._test(np.array([0.2, 0.8]), [10])
          self._test(tf.constant([0.5]), [1])
          self._test(tf.constant([0.5]), [5])
          self._test(tf.constant([0.2, 0.8]), [1])
          self._test(tf.constant([0.2, 0.8]), [10])
  
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 3 for calling the test_pointmass_sample_class obj's underlying member method code with example usage: obj.test_1d() without return types