def METHOD_NAME(self):
    if 'Data' in self.inputs and self.inputs['Data'].links:
        inputsocketname = 'Data'
        outputsocketname = ['Slice', 'Other']
        changable_sockets(self, inputsocketname, outputsocketname)