def set_try(self, trials):
        if trials in range(1, 6):
            self._data['try'] = trials
        else:
            raise ValueError("Value is out of range")
        
        return self
dataset/ETHPy150Open smsapi/smsapi-python-client/smsapi/actions/vms.py/SendAction.set_try/original