<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_node(self, node):
 """ Removes a node from the project. In theory this should be called by the node manager. :param node: Node instance """


        if node in self._nodes:
            yield from node.delete()
            self._nodes.remove(node)