class_docstr: Wrapper around single-ownership C-API objects that handles deletion.
class_docstr_tok: ["Wrapper","around","single-ownership","C-API","objects","that","handles","deletion","."]
docstr: Yields the managed C-API Object, guaranteeing aliveness.
  
  This is a context manager. Inside the context the C-API object is
  guaranteed to be alive.
  
  Raises:
    AlreadyGarbageCollectedError: if the object is already deleted.
code: def get(self):
      """Yields the managed C-API Object, guaranteeing aliveness.
  
      This is a context manager. Inside the context the C-API object is
      guaranteed to be alive.
  
      Raises:
        AlreadyGarbageCollectedError: if the object is already deleted.
      """
      # Thread-safety: self.__del__ never runs during the call of this function
      # because there is a reference to self from the argument list.
      if self._obj is None:
          raise AlreadyGarbageCollectedError(self.name, self.type_name)
      yield self._obj
  
imports: import contextlib
  from tensorflow.core.framework import api_def_pb2
  from tensorflow.core.framework import op_def_pb2
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.util import compat
  from tensorflow.python.util import tf_contextlib
label_desc: Use image node_id 2 for calling the UniquePtr obj's underlying member method code with example usage: obj.get() without return types