code: def test_name_and_value_are_reproduced_after_serialization(self):
      initial_value = tf.random.uniform(self.shape, dtype=tf.float32)
      parameter = self.cls(initial_value, **self.kwargs)
      name_before = parameter.name
      value_before = parameter()
      json = tf.keras.utils.legacy.serialize_keras_object(parameter)
      weights = parameter.get_weights()
      parameter = tf.keras.utils.legacy.deserialize_keras_object(json)
      self.assertIsInstance(parameter, self.cls)
      self.assertEqual(name_before, parameter.name)
      parameter.set_weights(weights)
      value_after = parameter()
      self.assertAllEqual(value_before, value_after)
      self.assertEqual(value_before.dtype.name, value_after.dtype.name)
  
file_path: compression/tensorflow_compression/python/layers/parameters_test.py
imports: from absl.testing import parameterized
  import tensorflow
  from tensorflow_compression.python.layers import parameters
label_desc: Use image node_id 2 for calling the ParameterTest obj's underlying member method code with example usage: obj.test_name_and_value_are_reproduced_after_serialization() without return types