class_docstr: Represents an actor creation in a Ray task DAG.
docstr: Check if InputNode is used in children DAGNodes with current node
  as the root.
docstr_tok: ["Check","if","InputNode","is","used","in","children","DAGNodes","with","current","node","as","the","root","."]
code: def _contains_input_node(self) -> bool:
      """Check if InputNode is used in children DAGNodes with current node
      as the root.
      """
      children_dag_nodes = self._get_all_child_nodes()
      for child in children_dag_nodes:
          if isinstance(child, InputNode):
              return True
      return False
  
imports: from weakref import ReferenceType
  import ray
  from ray.dag.dag_node import DAGNode
  from ray.dag.input_node import InputNode
  from ray.dag.format_utils import get_dag_node_str
  from ray.dag.constants import PARENT_CLASS_NODE_KEY, PREV_CLASS_METHOD_CALL_KEY
  from ray.util.annotations import DeveloperAPI
  from typing import Any, Dict, List, Union, Tuple, Optional
label_desc: Use image node_id 4 for calling the ClassNode obj's underlying member method code with example usage: obj._contains_input_node() and returns: False, True