code: def test_default_concurrency_limits(
      self, default_concurrency_limit, statuses
  ):
      with gr.Blocks() as demo:
          a = gr.Number()
          b = gr.Number()
          output = gr.Number()
  
          add_btn = gr.Button("Add")
  
          @add_btn.click(inputs=[a, b], outputs=output)
          def add(x, y):
              time.sleep(4)
              return x + y
  
      demo.queue(default_concurrency_limit=default_concurrency_limit)
      _, local_url, _ = demo.launch(
          prevent_thread_lock=True,
      )
      client = grc.Client(local_url)
  
      add_job_1 = client.submit(1, 1, fn_index=0)
      add_job_2 = client.submit(1, 1, fn_index=0)
      add_job_3 = client.submit(1, 1, fn_index=0)
  
      time.sleep(2)
  
      add_job_statuses = [
          add_job_1.status(),
          add_job_2.status(),
          add_job_3.status(),
      ]
      assert (
          sorted([s.code.value for s in add_job_statuses]) == statuses
      )
  
file_path: gradio/test/test_queueing.py
imports: import time
  from concurrent.futures import wait
  import gradio_client
  import pytest
  from fastapi.testclient import TestClient
  import gradio
label_desc: Use image node_id 3 for calling the TestQueueing obj's underlying member method code with example usage: obj.test_default_concurrency_limits(default_concurrency_limit, statuses) and returns: unknown