code: def test_axis_exceptions(self):
      if not tf.executing_eagerly():
          with self.assertRaisesWithPredicateMatch(
              NotImplementedError,
              "Argument `axis` must be known statically.",
          ):
              pad.Pad(
                  axis=tf1.placeholder_with_default([-1], shape=None),
                  validate_args=True,
              )
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Argument `axis` must be scalar or vector."
      ):
          pad.Pad(axis=[[-1]], validate_args=True)
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Argument `axis` must be negative."
      ):
          pad.Pad(axis=0, validate_args=True)
      with self.assertRaisesWithPredicateMatch(
          ValueError, "Argument `axis` elements must be unique."
      ):
          pad.Pad(axis=[-1, -1], validate_args=True)
  
file_path: probability/tensorflow_probability/python/bijectors/pad_test.py
imports: import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import pad
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 4 for calling the PadBijectorTest obj's underlying member method code with example usage: obj.test_axis_exceptions() without return types