code: def test_with_rest_api(ray_start_stop):
      """Verify the REST API can configure the request timeout."""
      config = {
          "proxy_location": "EveryNode",
          "http_options": {"request_timeout_s": 1},
          "applications": [
              {
                  "name": "app",
                  "route_prefix": "/",
                  "import_path": (
                      "ray.serve.tests."
                      "test_request_timeout:hangs_on_first_request_app"
                  ),
              }
          ],
      }
      ServeSubmissionClient(
          "http://localhost:8265"
      ).deploy_applications(config)
  
      def application_running():
          response = requests.get(
              "http://localhost:52365/api/serve/applications/",
              timeout=15,
          )
          assert response.status_code == 200
  
          serve_details = ServeInstanceDetails(**response.json())
          return (
              serve_details.applications["app"].status
              == ApplicationStatus.RUNNING
          )
  
      wait_for_condition(application_running, timeout=15)
      print("Application has started running. Testing requests...")
  
      response = requests.get("http://localhost:8000")
      assert response.status_code == 408
  
      response = requests.get("http://localhost:8000")
      assert response.status_code == 200
      print("Requests succeeded! Deleting application.")
      ServeSubmissionClient(
          "http://localhost:8265"
      ).delete_applications()
  
imports: import asyncio
  import os
  import sys
  import time
  from typing import Generator, Set
  import pytest
  import requests
  from fastapi import FastAPI
  from starlette.requests import Request
  from starlette.responses import StreamingResponse
  import ray
  from ray import serve
  from ray._private.test_utils import SignalActor, wait_for_condition
  from ray.dashboard.modules.serve.sdk import ServeSubmissionClient
  from ray.serve._private.common import ApplicationStatus
  from ray.serve._private.test_utils import send_signal_on_cancellation
  from ray.serve.schema import ServeInstanceDetails
  from ray.util.state import list_tasks
label_desc: Use image node_id 5 for calling a global function with example usage: test_with_rest_api(ray_start_stop) and returns: unknown