code: def _test(self, n, concentration, base):
      x = DirichletProcess(concentration=concentration, base=base)
      val_est = x.sample(n).shape.as_list()
      val_true = (
          n
          + tf.convert_to_tensor(concentration).shape.as_list()
          + tf.convert_to_tensor(base).shape.as_list()
      )
      self.assertEqual(val_est, val_true)
  
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 1 for calling the test_dirichletprocess_sample_class obj's underlying member method code with example usage: obj._test(n, concentration, base) without return types