code: def test_status_constructor_error(serve_instance):
      """Deploys Serve deployment that errors out in constructor, checks that the
      traceback is surfaced in serve.status().
      """
  
      @serve.deployment
      class A:
          def __init__(self):
              1 / 0
  
      serve.run(A.bind(), _blocking=False)
  
      def check_for_failed_deployment():
          default_app = serve.status().applications[
              SERVE_DEFAULT_APP_NAME
          ]
          error_substr = "ZeroDivisionError: division by zero"
          return (
              default_app.status == "DEPLOY_FAILED"
              and error_substr in default_app.deployments["A"].message
          )
  
      wait_for_condition(check_for_failed_deployment)
  
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 28 for calling a global function with example usage: test_status_constructor_error(serve_instance) and returns: unknown