code: def detach(self):
          
          if not self._closed:
              del self._as_parameter_
              self._closed = True
              self._ptr = None
docs: Detach the underlying LLVM resource without disposing of it.