<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_node(self, name):
 """Delete the specified node if it exists. It is not an error if the node does not exist. """


        name = self._validate_name(name)
        if name in self.nodes:
            del self.nodes[name]