code: def test_deployment_error_handling(serve_instance):
      @serve.deployment
      def f():
          pass
  
      with pytest.raises(
          ValidationError,
          match="1 validation error for RayActorOptionsSchema.*",
      ):
          # This is an invalid configuration since dynamic upload of working
          # directories is not supported. The error this causes in the controller
          # code should be caught and reported back to the `deploy` caller.
  
          serve.run(
              f.options(
                  ray_actor_options={
                      "runtime_env": {"working_dir": "."}
                  }
              ).bind()
          )
  
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 3 for calling a global function with example usage: test_deployment_error_handling(serve_instance) without return types