def METHOD_NAME(self):
    token = self.token
    endpoint = self.endpoint
    # [START create_chat_client]
    from azure.communication.chat import ChatClient, CommunicationTokenCredential
    # set `endpoint` to an existing ACS endpoint
    chat_client = ChatClient(endpoint, CommunicationTokenCredential(token))
    # [END create_chat_client]