code: def testKumaraswamyModeInvalid(self):
      with tf1.Session():
          a = np.array([1.0, 2, 3])
          b = np.array([2.0, 4, 1.2])
          dist = kumaraswamy.Kumaraswamy(
              a, b, allow_nan_stats=False, validate_args=True
          )
          with self.assertRaisesOpError(
              "Mode undefined for concentration1 <= 1."
          ):
              self.evaluate(dist.mode())
  
          a = np.array([2.0, 2, 3])
          b = np.array([1.0, 4, 1.2])
          dist = kumaraswamy.Kumaraswamy(
              a, b, allow_nan_stats=False, validate_args=True
          )
          with self.assertRaisesOpError(
              "Mode undefined for concentration0 <= 1."
          ):
              self.evaluate(dist.mode())
  
imports: import numpy
  from scipy import special
  from scipy import stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import kumaraswamy
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 17 for calling the KumaraswamyTest obj's underlying member method code with example usage: obj.testKumaraswamyModeInvalid() without return types