code: def testToFromComponents(
      self, rt_spec, flat_values, nested_row_splits
  ):
      wrapped_tensor = WrappedTensor(constant_op.constant(flat_values))
      rt = RaggedTensor.from_nested_row_splits(
          wrapped_tensor, nested_row_splits
      )
      components = rt_spec._to_components(rt)
      self.assertIsInstance(components[0], WrappedTensor)
      self.assertAllEqual(components[0].value, wrapped_tensor.value)
      self.assertAllTensorsEqual(components[1:], nested_row_splits)
      rt_reconstructed = rt_spec._from_components(components)
      self.assertIsInstance(rt_reconstructed.flat_values, WrappedTensor)
      self.assertAllEqual(
          rt_reconstructed.flat_values.value, wrapped_tensor.value
      )
      self.assertAllTensorsEqual(
          rt_reconstructed.nested_row_splits, rt.nested_row_splits
      )
      self.assertEqual(rt_reconstructed.dtype, rt.dtype)
  
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 5 for calling the RaggedTensorSpecSupportedValuesTest obj's underlying member method code with example usage: obj.testToFromComponents(rt_spec, flat_values, nested_row_splits) without return types