code: def test_status_package_unavailable_in_controller(serve_instance):
      """Test that exceptions raised from packages that are installed on deployment actors
      but not on controller is serialized and surfaced properly in serve.status().
      """
  
      @serve.deployment
      class MyDeployment:
          def __init__(self):
              import pymysql
              from sqlalchemy import create_engine
  
              pymysql.install_as_MySQLdb()
  
              create_engine("mysql://some_wrong_url:3306").connect()
  
      ray_actor_options = {
          "runtime_env": {"pip": ["PyMySQL", "sqlalchemy==1.3.19"]}
      }
      serve.run(
          MyDeployment.options(
              ray_actor_options=ray_actor_options
          ).bind(),
          _blocking=False,
      )
  
      def check_for_failed_deployment():
          default_app = serve.status().applications[
              SERVE_DEFAULT_APP_NAME
          ]
          return (
              default_app.status == "DEPLOY_FAILED"
              and "some_wrong_url"
              in default_app.deployments["MyDeployment"].message
          )
  
      wait_for_condition(check_for_failed_deployment, timeout=15)
  
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 29 for calling a global function with example usage: test_status_package_unavailable_in_controller(serve_instance) and returns: unknown