code: def testAssertionsOneOfProbsAndLogits(self):
      with self.assertRaisesRegex(
          ValueError, "Construct `Binomial` with `probs` or `logits`"
      ):
          self.evaluate(binomial_lib.Binomial(total_count=10))
  
      with self.assertRaisesRegexp(ValueError, "but not both"):
          self.evaluate(
              binomial_lib.Binomial(
                  total_count=10, probs=0.5, logits=0.0
              )
          )
  
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 2 for calling the BinomialTest obj's underlying member method code with example usage: obj.testAssertionsOneOfProbsAndLogits() without return types