code: def deserialize(proto: SerializedTraceType) -> Serializable:
      """Converts a proto SerializedTraceType to instance of Serializable."""
      for proto_class in PROTO_CLASS_TO_PY_CLASS:
          if proto.representation.Is(proto_class.DESCRIPTOR):
              actual_proto = proto_class()
              proto.representation.Unpack(actual_proto)
              return PROTO_CLASS_TO_PY_CLASS[
                  proto_class
              ].experimental_from_proto(actual_proto)
  
      raise ValueError(
          "Can not deserialize proto of url: ",
          proto.representation.type_url,
          " since no matching Python class could be found. For value ",
          proto.representation.value,
      )
  
file_path: tensorflow-upstream/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 3 for calling a global function with example usage: deserialize(proto) and returns: PROTO_CLASS_TO_PY_CLASS