docstr: Test that rt.__getitem__(slice_spec) == expected.
docstr_tok: ["Test","that","rt.__getitem__","(","slice_spec",")","==","expected","."]
code: def testErrorsWithRaggedRank2(self, slice_spec, expected, message):
      """Test that rt.__getitem__(slice_spec) == expected."""
      rt = RaggedTensor.from_nested_row_splits(
          EXAMPLE_RAGGED_TENSOR_4D_VALUES,
          [
              EXAMPLE_RAGGED_TENSOR_4D_SPLITS1,
              EXAMPLE_RAGGED_TENSOR_4D_SPLITS2,
          ],
      )
      self.assertAllEqual(rt, EXAMPLE_RAGGED_TENSOR_4D)
      self._TestGetItemException(rt, slice_spec, expected, message)
  
imports: import re
  from absl.testing import parameterized
  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 tensor_getitem_override
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged.ragged_tensor import RaggedTensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 7 for calling the RaggedGetItemTest obj's underlying member method code with example usage: obj.testErrorsWithRaggedRank2(slice_spec, expected, message) without return types