def set_idx(self, idx):
        def check_string(string):
            return (36 <= len(string) and string.isalnum())
                
        if isinstance(idx, (list, tuple)):
            self._data = "|".join([i for i in idx if check_string(i)])
        elif check_string(idx):
            self._data['idx'] = idx
            
        return self
dataset/ETHPy150Open smsapi/smsapi-python-client/smsapi/actions/message.py/ApiSendAction.set_idx/swapped operands of `<=`