class_docstr: Ray dag node used in DAG building API to mark the endpoint of DAG
class_docstr_tok: ["Ray","dag","node","used","in","DAG","building","API","to","mark","the","endpoint","of","DAG"]
code: def __init__(
      self,
      args: Union[List[DAGNode], Tuple[DAGNode]],
      other_args_to_resolve: Dict[str, Any] = None,
  ):
      if isinstance(args, tuple):
          args = list(args)
      if not isinstance(args, list):
          raise ValueError(
              f"Invalid input type for `args`, {type(args)}."
          )
      if not isinstance(args, list):
          args = (args,)
      super().__init__(
          args,
          {},
          {},
          other_args_to_resolve=other_args_to_resolve or {},
      )
  
file_path: ray/python/ray/dag/output_node.py
imports: import ray
  from typing import Any, Dict, List, Union, Tuple
  from ray.dag import DAGNode
  from ray.dag.format_utils import get_dag_node_str
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 1 to create a new MultiOutputNode object from inherited base classes: DAGNode with example: obj = MultiOutputNode(args, other_args_to_resolve)