code: def test_get_api_info(self):
      chatbot = gr.ChatInterface(double)
      api_info = chatbot.get_api_info()
      assert len(api_info["named_endpoints"]) == 1
      assert len(api_info["unnamed_endpoints"]) == 0
      assert "/chat" in api_info["named_endpoints"]
  
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 1 for calling the TestAPI obj's underlying member method code with example usage: obj.test_get_api_info() without return types