code: def test_mismatch_raises(self):
      with self.test_session():
          self.assertRaises(
              ValueError,
              self._test_sample,
              Normal,
              2,
              loc=[0.5, 0.5],
              scale=1.0,
          )
          self.assertRaises(
              ValueError,
              self._test_sample,
              Normal,
              2,
              loc=[0.5],
              scale=[1.0],
          )
          self.assertRaises(
              ValueError,
              self._test_sample,
              Normal,
              np.zeros([10, 3]),
              loc=[0.5, 0.5],
              scale=[1.0, 1.0],
          )
  
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 5 for calling the test_random_variable_value_class obj's underlying member method code with example usage: obj.test_mismatch_raises() without return types