code: def test_text_completion_sync_stream(client):
      text_completion = _create_text_completion(client)
      response = text_completion.complete_sync(
          prompt="Write a poem about the Amazon rainforest. End it with an emoji.",
          enable_streaming=True,
      )
      for token in response:
          assert token
          print(token, end="")
  
file_path: h2ogpt/client/tests/test_client.py
imports: import platform
  import pytest
  from h2ogpt_client import Client
label_desc: Use image node_id 4 for calling a global function with example usage: test_text_completion_sync_stream(client) without return types