code: def deploy_config_and_wait_for_target_capacity(
      self,
      client: ServeControllerClient,
      config: ServeDeploySchema,
      target_capacity: float,
  ):
      config.target_capacity = target_capacity
      client.deploy_apps(config)
      wait_for_condition(
          lambda: serve.status().target_capacity == target_capacity
      )
  
imports: import asyncio
  import sys
  from copy import deepcopy
  from typing import Dict, Optional
  import pytest
  import ray
  from ray import serve
  from ray._private.pydantic_compat import BaseModel
  from ray._private.test_utils import SignalActor, wait_for_condition
  from ray.exceptions import RayActorError
  from ray.serve import Application
  from ray.serve._private.client import ServeControllerClient
  from ray.serve._private.common import ApplicationStatus, DeploymentStatus, DeploymentStatusTrigger, ReplicaState, TargetCapacityDirection
  from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME, SERVE_NAMESPACE
  from ray.serve.config import AutoscalingConfig
  from ray.serve.context import _get_global_client
  from ray.serve.schema import ServeApplicationSchema, ServeDeploySchema
label_desc: Use image node_id 1 for calling the TestInitialReplicasHandling obj's underlying member method code with example usage: obj.deploy_config_and_wait_for_target_capacity(client, config, target_capacity) without return types