code: def test_deploy_bad_pip_package_deployment(serve_instance):
      """Test deploying with a bad runtime env at deployment level."""
  
      @serve.deployment(
          ray_actor_options={"runtime_env": {"pip": ["does_not_exist"]}}
      )
      class Model:
          def __call__(self):
              return "hello world"
  
      serve.run(Model.bind(), _blocking=False)
  
      def check_fail():
          app_status = serve.status().applications["default"]
          assert app_status.status == ApplicationStatus.DEPLOY_FAILED
          deployment_message = app_status.deployments["Model"].message
          assert (
              "No matching distribution found for does_not_exist"
              in deployment_message
          )
          return True
  
      wait_for_condition(check_fail, timeout=15)
  
imports: import functools
  import os
  import sys
  import threading
  import time
  from concurrent.futures.thread import ThreadPoolExecutor
  from typing import Dict
  import pytest
  import requests
  import ray
  from ray import serve
  from ray._private.pydantic_compat import ValidationError
  from ray._private.test_utils import SignalActor, wait_for_condition
  from ray.serve._private.common import ApplicationStatus
  from ray.serve._private.logging_utils import get_component_log_file_name, get_serve_logs_dir
  from ray.util.state import list_actors
label_desc: Use image node_id 8 for calling a global function with example usage: test_deploy_bad_pip_package_deployment(serve_instance) and returns: True, str