code: def register_serializable(cls: Type[Serializable]):
      """Registers a Python class to support serialization.
  
      Only register standard TF types. Custom types should NOT be registered.
  
      Args:
        cls: Python class to register.
      """
      if cls.experimental_type_proto() in PROTO_CLASS_TO_PY_CLASS:
          raise ValueError(
              "Existing Python class "
              + PROTO_CLASS_TO_PY_CLASS[
                  cls.experimental_type_proto()
              ].__name__
              + " already has "
              + cls.experimental_type_proto().__name__
              + " as its associated proto representation. Please ensure "
              + cls.__name__
              + " has a unique proto representation."
          )
  
      PROTO_CLASS_TO_PY_CLASS[cls.experimental_type_proto()] = cls
  
file_path: tensorflow/tensorflow/core/function/trace_type/serialization.py
imports: import abc
  from typing import Type
  from google.protobuf import message
  from tensorflow.core.function.trace_type import serialization_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: register_serializable(cls) without return types