<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def price(self, from_=None, **kwargs):
 """ Check pricing for a new outbound message. An useful synonym for "message" command with "dummy" parameters set to true. :Example: message = client.messages.price(from_="447624800500", phones="999000001", text="Hello!", lists="1909100") :param str from: One of allowed Sender ID (phone number or alphanumeric sender ID). :param str text: Message text. Required if templateId is not set. :param str templateId: Template used instead of message text. Required if text is not set. :param str sendingTime: Message sending time in unix timestamp format. Default is now. Optional (required with rrule set). :param str contacts: Contacts ids, separated by comma, message will be sent to. :param str lists: Lists ids, separated by comma, message will be sent to. :param str phones: Phone numbers, separated by comma, message will be sent to. :param int cutExtra: Should sending method cut extra characters which not fit supplied partsCount or return 400 Bad request response instead. Default is false. :param int partsCount: Maximum message parts count (TextMagic allows sending 1 to 6 message parts). Default is 6. :param str referenceId: Custom message reference id which can be used in your application infrastructure. :param str rrule: iCal RRULE parameter to create recurrent scheduled messages. When used, sendingTime is mandatory as start point of sending. :param int dummy: If 1, just return message pricing. Message will not send. """

        if from_:
            kwargs["from"] = from_
        uri = "%s/%s" % (self.uri, "price")
        response, instance = self.request("GET", uri, params=kwargs)
        return instance