class_docstr: Holds a Tensor which a tf.function can capture.
  
  `CapturableResource`s are discovered by traversing the graph of object
  attributes, e.g. during `tf.saved_model.save`. They are excluded from the
  scope-based tracking of `TrackableResource`; generally things that require
  initialization should inherit from `TrackableResource` instead of
  `CapturableResource` directly.
docstr: For implementing `Trackable`.
docstr_tok: ["For","implementing","`","Trackable","`","."]
code: def _export_to_saved_model_graph(
      self, object_map, tensor_map, **unused_kwargs
  ):
      """For implementing `Trackable`."""
      new_obj = copy.copy(self)
      # pylint: disable=protected-access
      with ops.device(self._resource_device):
          new_resource = new_obj._create_resource()
      new_obj._resource_handle = new_resource
      # pylint: enable=protected-access
      object_map[self] = new_obj
      tensor_map[self.resource_handle] = new_resource
      return [self.resource_handle]
  
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 11 for calling the CapturableResource obj's underlying member method code with example usage: obj._export_to_saved_model_graph(object_map, tensor_map) and returns: list