code: def test_show_api_queue_not_enabled():
      io = Interface(lambda x: x, "text", "text", examples=[["freddy"]])
      app, _, _ = io.launch(prevent_thread_lock=True)
      assert io.show_api
      io.close()
      io.launch(prevent_thread_lock=True, show_api=False)
      assert not io.show_api
  
imports: import functools
  import os
  import tempfile
  from contextlib import asynccontextmanager, closing
  from unittest import mock
  import gradio_client
  import numpy
  import pandas
  import pytest
  import starlette.routing
  from fastapi import FastAPI
  from fastapi.testclient import TestClient
  from gradio_client import media_data
  import gradio
  from gradio import Blocks, Button, Interface, Number, Textbox, close_all, routes, wasm_utils
  from gradio.route_utils import FnIndexInferError
label_desc: Use image node_id 5 for calling a global function with example usage: test_show_api_queue_not_enabled() without return types