class_docstr: Restored SavedResource.
code: def _deserialize_from_proto(
      cls, object_proto, dependencies, **unused_kwargs
  ):
      obj = cls(device=object_proto.resource.device)
      resource_creator = dependencies.get("_create_resource")
      if resource_creator is not None:
          obj._create_resource = (
              resource_creator  # pylint: disable=protected-access
          )
      return obj
  
imports: import contextlib
  import copy
  import weakref
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.trackable import base
  from tensorflow.python.util import tf_contextlib
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling the RestoredResource obj's underlying member method code with example usage: obj._deserialize_from_proto(cls, object_proto, dependencies) and returns: obj