<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_links(self, node):
 """ Delete all link connected to this node. The operation use a lock to avoid cleaning links from multiple nodes at the same time. """

        for link in list(self._links.values()):
            if node in link.nodes:
                yield from self.delete_link(link.id, force_delete=True)