code: def _test_sample(self, RV, value, *args, **kwargs):
      rv = RV(*args, value=value, **kwargs)
      value_shape = rv.value().shape
      expected_shape = rv.sample_shape.concatenate(
          rv.batch_shape
      ).concatenate(rv.event_shape)
      self.assertEqual(value_shape, expected_shape)
      self.assertEqual(rv.dtype, rv.value().dtype)
  
file_path: edward/tests/models/random_variable_value_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 Bernoulli, Normal, Poisson, RandomVariable
  from edward.util import copy
label_desc: Use image node_id 1 for calling the test_random_variable_value_class obj's underlying member method code with example usage: obj._test_sample(RV, value) without return types