class_docstr: Holds information about one version of a revived type.
docstr: Create a SavedUserObject proto.
docstr_tok: ["Create","a","SavedUserObject","proto","."]
code: def to_proto(self):
      """Create a SavedUserObject proto."""
      # For now wrappers just use dependencies to save their state, so the
      # SavedUserObject doesn't depend on the object being saved.
      # TODO(allenl): Add a wrapper which uses its own proto.
      return saved_object_graph_pb2.SavedUserObject(
          identifier=self.identifier,
          version=versions_pb2.VersionDef(
              producer=self.version,
              min_consumer=self._min_consumer_version,
              bad_consumers=self._bad_consumers,
          ),
      )
  
file_path: tensorflow/tensorflow/python/saved_model/revived_types.py
imports: import operator
  from tensorflow.core.framework import versions_pb2
  from tensorflow.core.protobuf import saved_object_graph_pb2
  from tensorflow.python.trackable import data_structures
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling the VersionedTypeRegistration obj's underlying member method code with example usage: obj.to_proto() and returns: saved_object_graph_pb2