code: def test_chat_completion_sync(client):
      chat_completion = _create_chat_completion(client)
  
      chat1 = chat_completion.chat_sync(prompt="What is UNESCO?")
      assert chat1["user"] == "What is UNESCO?"
      assert chat1["gpt"]
  
      chat2 = chat_completion.chat_sync(
          prompt="Is it a part of the UN?"
      )
      assert chat2["user"] == "Is it a part of the UN?"
      assert chat2["gpt"]
  
      chat3 = chat_completion.chat_sync(
          prompt="Where is the headquarters?"
      )
      assert chat3["user"] == "Where is the headquarters?"
      assert chat3["gpt"]
  
      chat_history = chat_completion.chat_history()
      assert chat_history == [chat1, chat2, chat3]
      print(chat_history)
  
file_path: h2ogpt/client/tests/test_client.py
imports: import platform
  import pytest
  from h2ogpt_client import Client
label_desc: Use image node_id 6 for calling a global function with example usage: test_chat_completion_sync(client) without return types