class_docstr: This is a large test due to the moments computation taking some time.
class_docstr_tok: ["This","is","a","large","test","due","to","the","moments","computation","taking","some","time","."]
code: def testCornerCases(self):
      rng = stateful_random_ops.Generator.from_seed(12345)
      counts = np.array([5, 5, 5, 0, 0, 0], dtype=np.float32)
      probs = np.array(
          [0, 1, float("nan"), -10, 10, float("nan")], dtype=np.float32
      )
      expected = np.array(
          [0, 5, float("nan"), 0, 0, 0], dtype=np.float32
      )
      result = rng.binomial(
          shape=[6], counts=counts, probs=probs, dtype=np.float32
      )
      self.assertAllEqual(expected, self.evaluate(result))
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.kernel_tests.random import util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import stateful_random_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 7 for calling the RandomBinomialTest obj's underlying member method code with example usage: obj.testCornerCases() without return types