code: def testSerialize(self, rt_spec, expected):
      serialization = rt_spec._serialize()
      # TensorShape has an unconventional definition of equality, so we can't use
      # assertEqual directly here.  But repr() is deterministic and lossless for
      # the expected values, so we can use that instead.
      self.assertEqual(repr(serialization), repr(expected))
  
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 3 for calling the RaggedTensorSpecSupportedValuesTest obj's underlying member method code with example usage: obj.testSerialize(rt_spec, expected) without return types