def fix_input_socket_id(self, input_socket, old_id):
        """Fix input socket id on socket tree."""
        ### get the id of the parent
        parent_id = input_socket.parent.get_id()

        ### iterate over the tree data in the socket,
        ### trees, looking for the one with the parent id

        for parent_data in self.parent_sockets_data:
            if parent_data["id"] == parent_id:
                break

        ### now iterate over the children data, looking
        ### for the data whose id matches the old id
        ### received

        for child_data in parent_data["children"]:
            if child_data["id"] == old_id:
                break

        ### finally update the id of the child data with
        ### the current id of the input socket
        child_data["id"] = input_socket.get_id()
Fix input socket id on socket tree.
nodezator/graphman/socketparenthood/support.py