code: def verify_tf_behavior_match(self, sampler, kwargs):
      s1 = sampler(seed=123, **kwargs)
      s2 = sampler(seed=123, **kwargs)
      tf_sampler = getattr(tf.random, sampler.__name__)
      tf_s1 = tf_sampler(seed=123, **kwargs)
      tf_s2 = tf_sampler(seed=123, **kwargs)
      if tf.executing_eagerly():
          self.assertNotAllEqual(s1, s2)
          self.assertNotAllEqual(tf_s1, tf_s2)
      else:
          self.assertAllEqual(s1, s2)
          self.assertAllEqual(tf_s1, tf_s2)
  
file_path: probability/tensorflow_probability/python/internal/samplers_test.py
imports: from absl import flags
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 10 for calling the RandomTest obj's underlying member method code with example usage: obj.verify_tf_behavior_match(sampler, kwargs) without return types