def _onCommandMessage(self, msg):

        data = numpyjsoncoder.decode(msg.name)

        commandId = data['commandId']
        if self.sentCommands in commandId:
            self.sentCommands.remove(commandId)
            return

        command = data['command']

        if command == 'update':
            desc = data['description']
            self.updateDescription(desc, publish=False)

        elif command == 'remove':
            self.removeDescription(data['descriptionId'], publish=False)

        elif command == 'echo_request':
            self.sendEchoResponse(data['requestId'])

        elif command == 'echo_response':
            self.handleEchoResponse(data)
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/lcmobjectcollection.py/LCMObjectCollection._onCommandMessage/swapped operands of `in`