class_docstr: Tests argument verification of array_ops.reverse_sequence.
code: def testInvalidArguments(self):
      # seq_axis negative
      with self.assertRaisesRegex(
          (errors.InvalidArgumentError, ValueError),
          "seq_dim must be >=0",
      ):
  
          @def_function.function(jit_compile=True)
          def f(x):
              return array_ops.reverse_sequence(x, [2, 2], seq_axis=-1)
  
          f([[1, 2], [3, 4]])
  
      # batch_axis negative
      with self.assertRaisesRegex(ValueError, "batch_dim must be >=0"):
  
          @def_function.function(jit_compile=True)
          def g(x):
              return array_ops.reverse_sequence(
                  x, [2, 2], seq_axis=1, batch_axis=-1
              )
  
          g([[1, 2], [3, 4]])
  
file_path: tensorflow-upstream/tensorflow/compiler/tests/reverse_sequence_op_args_test.py
imports: from tensorflow.compiler.tests import xla_test
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import errors
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ReverseSequenceArgsTest obj's underlying member method code with example usage: obj.testInvalidArguments() and returns: array_ops, array_ops