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