class_docstr: Represents a deployment node in a DAG authored Ray DAG API.
code: def __init__(
      self,
      # For serve structured deployment, deployment body can be import path
      # to the class or function instead.
      deployment: Deployment,
      app_name: str,
      deployment_init_args: Tuple[Any],
      deployment_init_kwargs: Dict[str, Any],
      ray_actor_options: Dict[str, Any],
      other_args_to_resolve: Optional[Dict[str, Any]] = None,
  ):
      # Assign instance variables in base class constructor.
      super().__init__(
          deployment_init_args,
          deployment_init_kwargs,
          ray_actor_options,
          other_args_to_resolve=other_args_to_resolve,
      )
      self._app_name = app_name
      self._deployment = deployment
      if RAY_SERVE_ENABLE_NEW_HANDLE_API:
          self._deployment_handle = DeploymentHandle(
              self._deployment.name, self._app_name, sync=False
          )
      else:
          self._deployment_handle = RayServeHandle(
              self._deployment.name, self._app_name, sync=False
          )
  
file_path: ray/python/ray/serve/_private/deployment_node.py
imports: from typing import Any, Dict, List, Optional, Tuple
  from ray.dag import DAGNode
  from ray.dag.format_utils import get_dag_node_str
  from ray.serve._private.constants import RAY_SERVE_ENABLE_NEW_HANDLE_API
  from ray.serve.deployment import Deployment
  from ray.serve.handle import DeploymentHandle, RayServeHandle
label_desc: Use image node_id 1 to create a new DeploymentNode object from inherited base classes: DAGNode with example: obj = DeploymentNode(deployment, app_name, deployment_init_args, deployment_init_kwargs, ray_actor_options, other_args_to_resolve)