def METHOD_NAME(self, context):
    for idx, socket in enumerate(self.selected_mode):
        self.inputs[idx].name = socket
        self.inputs[idx].prop_name = socket.lower() + '_'
    updateNode(self, context)