code: def test_non_streaming_api_async(self, connect):
      chatbot = gr.ChatInterface(async_greet)
      with connect(chatbot) as client:
          result = client.predict("gradio")
          assert result == "hi, gradio"
  
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 5 for calling the TestAPI obj's underlying member method code with example usage: obj.test_non_streaming_api_async(connect) without return types