code: def testConstruction(self):
      flat_values_spec = WrappedTensor.Spec(
          tensor.TensorSpec(shape=(None, 5), dtype=dtypes.float32)
      )
      spec1 = RaggedTensorSpec(
          shape=None,
          dtype=dtypes.float32,
          ragged_rank=1,
          row_splits_dtype=dtypes.int64,
          flat_values_spec=flat_values_spec,
      )
      self.assertIsNone(spec1._shape.rank)
      self.assertEqual(spec1._dtype, dtypes.float32)
      self.assertEqual(spec1._row_splits_dtype, dtypes.int64)
      self.assertEqual(spec1._ragged_rank, 1)
      self.assertEqual(spec1._flat_values_spec, flat_values_spec)
  
      self.assertIsNone(spec1.shape.rank)
      self.assertEqual(spec1.dtype, dtypes.float32)
      self.assertEqual(spec1.row_splits_dtype, dtypes.int64)
      self.assertEqual(spec1.ragged_rank, 1)
      self.assertEqual(spec1.flat_values_spec, flat_values_spec)
  
      with self.assertRaisesRegex(
          ValueError, "dtype must be the same as flat_values_spec.dtype"
      ):
          spec1 = RaggedTensorSpec(
              shape=None,
              dtype=dtypes.float64,
              ragged_rank=1,
              row_splits_dtype=dtypes.int64,
              flat_values_spec=flat_values_spec,
          )
  
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 2 for calling the RaggedTensorSpecSupportedValuesTest obj's underlying member method code with example usage: obj.testConstruction() without return types