code: def test_reconfigure_with_exception(serve_instance):
      @serve.deployment
      class A:
          def __init__(self):
              self.config = "yoo"
  
          def reconfigure(self, config):
              if config == "hi":
                  raise Exception("oops")
  
              self.config = config
  
          def __call__(self, *args):
              return self.config
  
      with pytest.raises(ValidationError):
          serve.run(A.options(user_config="hi").bind())
  
imports: import os
  import sys
  import time
  from collections import defaultdict
  from typing import Callable
  import pytest
  import requests
  import ray
  from ray import serve
  from ray._private.pydantic_compat import ValidationError
  from ray._private.test_utils import SignalActor
  from ray.serve._private.utils import get_random_string
  from ray.serve.exceptions import RayServeException
label_desc: Use image node_id 3 for calling a global function with example usage: test_reconfigure_with_exception(serve_instance) and returns: self