def METHOD_NAME(self, token: str, device: "SMSDevice"):
    """send sms via twilio provider"""
    client = Client(self.account_sid, self.auth)
    try:
        message = client.messages.create(
            to=device.phone_number, from_=self.from_number, body=str(self.get_message(token))
        )
        LOGGER.debug("Sent SMS", to=device, message=message.sid)
    except TwilioRestException as exc:
        LOGGER.warning("Error sending token by Twilio SMS", exc=exc, msg=exc.msg)
        raise ValidationError(exc.msg)