code: def testBinomialMode(self):
      n = 5.0
      p = [0.1, 0.2, 0.7]
      binom = binomial_lib.Binomial(
          total_count=n, probs=p, validate_args=True
      )
      expected_modes = [0.0, 1, 4]
      self.assertEqual((3,), binom.mode().shape)
      self.assertAllClose(expected_modes, self.evaluate(binom.mode()))
  
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 19 for calling the BinomialTest obj's underlying member method code with example usage: obj.testBinomialMode() without return types