code: def test_streaming_api(self, connect):
      chatbot = gr.ChatInterface(stream).queue()
      with connect(chatbot) as client:
          job = client.submit("hello")
          wait([job])
          assert job.outputs() == ["h", "he", "hel", "hell", "hello"]
  
imports: import tempfile
  from concurrent.futures import wait
  from pathlib import Path
  from unittest.mock import patch
  import pytest
  import gradio
label_desc: Use image node_id 2 for calling the TestAPI obj's underlying member method code with example usage: obj.test_streaming_api(connect) without return types