def drop_node(self, node, check_unregistered=True):

        # Remove all references to the node.
        nodepath = node._v_pathname

        self.drop_from_cache(nodepath)

        if nodepath in self.registry:
            if not node._v_isopen:
                del self.registry[nodepath]
        elif check_unregistered:
            # If the node is not in the registry (this should never happen)
            # we close it forcibly since it is not ensured that the __del__
            # method is called for object that are still alive when the
            # interpreter is shut down
            if node._v_isopen:
                warnings.warn("dropping a node that is not in the registry: "
                              "``%s``" % nodepath)

                node._g_pre_kill_hook()
                node._f_close()
Converts the document to a string.
dataset/ETHPy150Open PyTables/PyTables/tables/file.py/NodeManager.drop_node--crossover with--dataset/ETHPy150Open lethain/lifeflow/markdown/odt2txt.py/OpenDocumentTextFile.toString