code: def test_status_basic(serve_instance):
      # Before Serve is started, serve.status() should have an empty list of applications
      assert len(serve.status().applications) == 0
  
      @serve.deployment(ray_actor_options={"num_cpus": 0.1})
      class A:
          def __call__(self, val: int):
              return val + 1
  
      @serve.deployment(ray_actor_options={"num_cpus": 0.1})
      def f():
          return "hello world"
  
      @serve.deployment(ray_actor_options={"num_cpus": 0.1})
      class MyDriver:
          def __init__(self, handle):
              self._h = handle.options(use_new_handle_api=True)
  
          async def __call__(self):
              return await self._h.remote()
  
      handle_1 = serve.run(
          A.bind(), name="plus", route_prefix="/a"
      ).options(
          use_new_handle_api=True,
      )
      handle_2 = serve.run(
          MyDriver.bind(f.bind()), name="hello", route_prefix="/b"
      ).options(
          use_new_handle_api=True,
      )
  
      assert handle_1.remote(8).result() == 9
      assert handle_2.remote().result() == "hello world"
  
      app_status = serve.status().applications
      assert len(app_status) == 2
      assert set(app_status["plus"].deployments.keys()) == {"A"}
      assert set(app_status["hello"].deployments.keys()) == {
          "MyDriver",
          "f",
      }
      for d in app_status["plus"].deployments.values():
          assert d.status == "HEALTHY" and d.replica_states == {
              "RUNNING": 1
          }
      for d in app_status["plus"].deployments.values():
          assert d.status == "HEALTHY" and d.replica_states == {
              "RUNNING": 1
          }
  
      proxy_status = serve.status().proxies
      assert all(p == "HEALTHY" for p in proxy_status.values())
  
imports: import asyncio
  import os
  import sys
  from typing import Dict, Optional
  import pytest
  import requests
  import starlette.responses
  from fastapi import FastAPI
  import ray
  from ray import serve
  from ray._private.pydantic_compat import BaseModel, ValidationError
  from ray._private.test_utils import SignalActor, wait_for_condition
  from ray.serve._private.api import call_app_builder_with_args_if_necessary
  from ray.serve._private.common import DeploymentID
  from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME
  from ray.serve.deployment import Application
  from ray.serve.exceptions import RayServeException
  from ray.serve.handle import DeploymentHandle, RayServeHandle
label_desc: Use image node_id 27 for calling a global function with example usage: test_status_basic(serve_instance) and returns: str, unknown, unknown