code: def test_persistent_state(self):
      with self.test_session() as sess:
          dp = DirichletProcess(0.1, Normal(loc=0.0, scale=1.0))
          x = dp.sample(5)
          y = dp.sample(5)
          x_data, y_data, locs = sess.run([x, y, dp.locs])
          for sample in x_data:
              self.assertTrue(sample in locs)
          for sample in y_data:
              self.assertTrue(sample in locs)
  
file_path: edward/tests/models/dirichlet_process_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 DirichletProcess, Normal
label_desc: Use image node_id 6 for calling the test_dirichletprocess_sample_class obj's underlying member method code with example usage: obj.test_persistent_state() without return types