code: def test_registered_serializable(self, cycles):
      @registration.register_serializable(name=f"SaveAndLoad{cycles}")
      class Module(autotrackable.AutoTrackable):
          def __init__(self, name="module"):
              self.v = variables.Variable(1.0)
              self.name = name
  
          def _serialize_to_proto(self, **unused_kwargs):
              return wrappers_pb2.StringValue(value=self.name)
  
          @classmethod
          def _deserialize_from_proto(cls, proto, **unused_kwargs):
              if proto.Is(wrappers_pb2.StringValue.DESCRIPTOR):
                  unpacked = wrappers_pb2.StringValue()
                  proto.Unpack(unpacked)
                  return cls(name=unpacked.value)
              raise AssertionError(
                  "Did not receive proto of correct type during deserialization. "
                  f"Expected type {wrappers_pb2.StringValue.DESCRIPTOR.full_name}, "
                  f"got {proto.TypeName()}"
              )
  
      m = Module("a")
      m.v.assign(5)
      loaded = cycle(m, cycles)
      self.assertIsInstance(loaded, Module)
      self.assertEqual(5, loaded.v.numpy())
      self.assertEqual("a", loaded.name)
  
imports: import os
  import tempfile
  from absl.testing import parameterized
  from google.protobuf import wrappers_pb2
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.client import session
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import io_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import gfile
  from tensorflow.python.saved_model import load
  from tensorflow.python.saved_model import loader
  from tensorflow.python.saved_model import registration
  from tensorflow.python.saved_model import save
  from tensorflow.python.trackable import autotrackable
label_desc: Use image node_id 1 for calling the SavedModelTest obj's underlying member method code with example usage: obj.test_registered_serializable(cycles) and returns: wrappers_pb2, cls