code: def test_proxy_state_update_starting_ready_succeed():
      """Test calling update method on ProxyState when the proxy state is STARTING and
      when the ready call succeeded.
  
      The proxy state started with STARTING. After update is called and ready call
      succeeded, the state will change to HEALTHY.
      """
      proxy_state = _create_proxy_state()
  
      # Ensure the proxy status before update is STARTING.
      assert proxy_state.status == ProxyStatus.STARTING
  
      # Ensure actor_details are set to the initial state when the proxy_state is created.
      assert proxy_state.actor_details.worker_id is None
      assert proxy_state.actor_details.log_file_path is None
      assert (
          proxy_state.actor_details.status == ProxyStatus.STARTING.value
      )
  
      # Continuously trigger update and wait for status to be changed.
      wait_for_condition(
          condition_predictor=_update_and_check_proxy_status,
          state=proxy_state,
          status=ProxyStatus.HEALTHY,
      )
  
      # Ensure actor_details are updated.
      assert proxy_state.actor_details.worker_id == "mock_worker_id"
      assert (
          proxy_state.actor_details.log_file_path
          == "mock_log_file_path"
      )
      assert (
          proxy_state.actor_details.status == ProxyStatus.HEALTHY.value
      )
  
imports: import json
  import time
  from typing import List, Tuple
  from unittest.mock import patch
  import pytest
  from ray._private.test_utils import wait_for_condition
  from ray.serve._private.cluster_node_info_cache import ClusterNodeInfoCache
  from ray.serve._private.common import ProxyStatus
  from ray.serve._private.constants import PROXY_HEALTH_CHECK_UNHEALTHY_THRESHOLD
  from ray.serve._private.proxy_state import ProxyState, ProxyStateManager, ProxyWrapper, ProxyWrapperCallStatus
  from ray.serve._private.test_utils import MockTimer
  from ray.serve._private.utils import Timer
  from ray.serve.config import DeploymentMode, HTTPOptions
  from ray.serve.schema import LoggingConfig
label_desc: Use image node_id 10 for calling a global function with example usage: test_proxy_state_update_starting_ready_succeed() without return types