code: def testSlicing(self, slice_fn, is_ragged_output):
      tensor_values = constant_op.constant(
          [[1.0, 2], [3, 4], [5, 6], [7, 8]]
      )
      row_splits = constant_op.constant([0, 2, 3, 4], dtypes.int32)
      raw_rt = RaggedTensor.from_row_splits(tensor_values, row_splits)
  
      values = WrappedTensor(tensor_values)
      rt = RaggedTensor.from_row_splits(values, row_splits)
  
      res = slice_fn(rt)
      raw_res = slice_fn(raw_rt)
      if is_ragged_output:
          self.assertIsInstance(res, RaggedTensor)
          self.assertIsInstance(res.flat_values, WrappedTensor)
          self.assertAllEqual(
              res.flat_values.value, raw_res.flat_values
          )
          self.assertAllTensorsEqual(
              res.nested_row_splits, raw_res.nested_row_splits
          )
      else:
          self.assertIsInstance(res, WrappedTensor)
          self.assertAllEqual(res.value, raw_res)
  
imports: 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 extension_type
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.ops.ragged import ragged_tensor_test_ops
  from tensorflow.python.ops.ragged.ragged_tensor import RaggedTensor
  from tensorflow.python.ops.ragged.ragged_tensor import RaggedTensorSpec
  from tensorflow.python.platform import googletest
  from tensorflow.python.util import dispatch
label_desc: Use image node_id 7 for calling the RaggedTensorSupportedValuesTest obj's underlying member method code with example usage: obj.testSlicing(slice_fn, is_ragged_output) without return types