class_docstr: Tests correctness of the cumsum bijector.
class_docstr_tok: ["Tests","correctness","of","the","cumsum","bijector","."]
code: def testInvalidAxis(self):
      with self.assertRaisesRegexp(
          ValueError, r"Argument `axis` must be negative.*"
      ):
          cumsum.Cumsum(axis=0, validate_args=True)
      with self.assertRaisesRegexp(
          TypeError, r"Argument `axis` is not an `int` type\.*"
      ):
          cumsum.Cumsum(axis=-1.0, validate_args=True)
  
file_path: probability/tensorflow_probability/python/bijectors/cumsum_test.py
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import cumsum
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the _CumsumBijectorTest obj's underlying member method code with example usage: obj.testInvalidAxis() without return types