code: def testCustomClassSerialization(self):
      my_custom = MyCustomClass(1234, "my_name")
      serialized = serialization.serialize(my_custom)
  
      self.assertTrue(
          serialized.representation.Is(
              serialization_test_pb2.MyCustomRepresentation.DESCRIPTOR
          )
      )
  
      proto = serialization_test_pb2.MyCustomRepresentation()
      serialized.representation.Unpack(proto)
      self.assertEqual(proto.index, my_custom.index)
      self.assertEqual(proto.name, my_custom.name)
  
imports: from tensorflow.core.function.trace_type import serialization
  from tensorflow.core.function.trace_type import serialization_test_pb2
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the SerializeTest obj's underlying member method code with example usage: obj.testCustomClassSerialization() without return types