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","."]
code: def __del__(self):
      obj = self._obj
      if obj is not None:
          self._obj = None
          self.deleter(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 3 for calling the UniquePtr obj's underlying member method code with example usage: obj.__del__() without return types