code: def _testBothReverseSequence(
      self,
      x,
      batch_axis,
      seq_axis,
      seq_lengths,
      truth,
      expected_err_re=None,
  ):
      self._testReverseSequence(
          x,
          batch_axis,
          seq_axis,
          seq_lengths,
          truth,
          True,
          expected_err_re,
      )
      self._testReverseSequence(
          x,
          batch_axis,
          seq_axis,
          seq_lengths,
          truth,
          False,
          expected_err_re,
      )
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.platform import test
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling the ReverseSequenceTest obj's underlying member method code with example usage: obj._testBothReverseSequence(x, batch_axis, seq_axis, seq_lengths, truth, expected_err_re) without return types