code: def test_invalid_axis(self):
      data = constant_op.constant([[1, 1, 1], [2, 2, 1], [3, 3, 1]])
      axis = -4
      left_pad_value = [0, 0]
      right_pad_value = [9, 9, 9]
  
      error_msg = (
          "axis must be between -k <= axis <= -1 OR 0 <= axis < k"
      )
      with self.assertRaisesRegexp(
          errors.InvalidArgumentError, error_msg
      ):
          _ = pad_along_dimension_op.pad_along_dimension(
              data=data,
              axis=axis,
              left_pad=left_pad_value,
              right_pad=right_pad_value,
          )
  
      error_msg = "axis must be an int"
      with self.assertRaisesRegexp(TypeError, error_msg):
          _ = pad_along_dimension_op.pad_along_dimension(
              data=data,
              axis=constant_op.constant(0),
              left_pad=left_pad_value,
              right_pad=right_pad_value,
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops import pad_along_dimension_op
label_desc: Use image node_id 13 for calling the PadAlongDimensionOpTest obj's underlying member method code with example usage: obj.test_invalid_axis() without return types