code: def testSampleCPU(self):
      with tf.device("CPU"):
          _, runtime = self.evaluate(
              binomial_lib._random_binomial(
                  shape=tf.constant([], dtype=tf.int32),
                  counts=tf.constant(10.0),
                  probs=tf.constant(0.5),
                  seed=test_util.test_seed(),
              )
          )
      self.assertEqual(implementation_selection._RUNTIME_CPU, runtime)
  
imports: import numpy
  from scipy import stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import binomial
  from tensorflow_probability.python.internal import implementation_selection
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 1 for calling the BinomialSamplingTest obj's underlying member method code with example usage: obj.testSampleCPU() without return types