code: def set_target_capacity(
      self,
      new_target_capacity: Optional[float],
      new_target_capacity_direction: Optional[TargetCapacityDirection],
  ):
      self.target_capacity = new_target_capacity
      self.target_capacity_direction = new_target_capacity_direction
  
file_path: ray/python/ray/serve/_private/deployment_info.py
imports: from typing import Any, Dict, Optional
  import ray
  from ray.serve._private.autoscaling_policy import AutoscalingPolicyManager
  from ray.serve._private.common import TargetCapacityDirection
  from ray.serve._private.config import DeploymentConfig, ReplicaConfig
  from ray.serve._private.constants import REPLICA_CONTROL_PLANE_CONCURRENCY_GROUP
  from ray.serve.generated.serve_pb2 import DeploymentInfo
  from ray.serve.generated.serve_pb2 import TargetCapacityDirection
label_desc: Use image node_id 5 for calling the DeploymentInfo obj's underlying member method code with example usage: obj.set_target_capacity(new_target_capacity, new_target_capacity_direction) without return types