class_docstr: Gathers and serializes an object graph.
class_docstr_tok: ["Gathers","and","serializes","an","object","graph","."]
code: def __deepcopy__(self, memo):
      # By default, weak references are not copied, which leads to surprising
      # deepcopy behavior. To fix, we first we copy the object itself, then we
      # make a weak reference to the copy.
      strong_root = self._root_ref()
      if strong_root is not None:
          strong_copy = copy.deepcopy(strong_root, memo)
          memo[id(self._root_ref)] = weakref.ref(strong_copy)
      # super() does not have a __deepcopy__, so we need to re-implement it
      copied = super().__new__(type(self))
      memo[id(self)] = copied
      for key, value in vars(self).items():
          setattr(copied, key, copy.deepcopy(value, memo))
      return copied
  
file_path: tensorflow/tensorflow/python/checkpoint/graph_view.py
imports: import copy
  import weakref
  from tensorflow.python.checkpoint import save_util_v1
  from tensorflow.python.checkpoint import trackable_view
  from tensorflow.python.trackable import base
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling the ObjectGraphView obj's underlying member method code with example usage: obj.__deepcopy__(memo) and returns: copied