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