<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def by_phone(self, phone, **kwargs):
 """ Fetch messages from chat with specified phone number. :Example: chat = client.chats.by_phone(phone="447624800500") :param str phone: Phone number in E.164 format. :param int page: Fetch specified results page. Default=1 :param int limit: How many results on page. Default=10 """

        chat_messages = ChatMessages(self.base_uri, self.auth)
        return self.get_subresource_instances(uid=phone, instance=chat_messages, params=kwargs)