async def METHOD_NAME(self):
    token = self.token
    endpoint = self.endpoint
    thread_id = self._thread_id
    # [START list_threads]
    from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential
    # set `endpoint` to an existing ACS endpoint
    chat_client = ChatClient(endpoint, CommunicationTokenCredential(token))
    async with chat_client:
        from datetime import datetime, timedelta
        start_time = datetime.utcnow() - timedelta(days=2)
        chat_threads = chat_client.list_chat_threads(results_per_page=5, start_time=start_time)
        print("list_threads succeeded with results_per_page is 5, and were created since 2 days ago.")
        async for chat_thread_item_page in chat_threads.by_page():
            async for chat_thread_item in chat_thread_item_page:
                print("thread id: ", chat_thread_item.id)
    # [END list_threads]