code: def test_invalid_input_node_as_class_constructor(shared_ray_instance):
      @ray.remote
      class Actor:
          def __init__(self, val):
              self.val = val
  
          def get(self):
              return self.val
  
      with pytest.raises(
          ValueError,
          match=(
              "InputNode handles user dynamic input the the DAG, and "
              "cannot be used as args, kwargs, or other_args_to_resolve "
              "in ClassNode constructor because it is not available at "
              "class construction or binding time."
          ),
      ):
          with InputNode() as dag_input:
              Actor.bind(dag_input)
  
file_path: ray/python/ray/dag/tests/test_input_node.py
imports: import pytest
  from ray.dag.dag_node import DAGNode
  from ray.dag.input_node import InputNode
  from typing import Any, TypeVar
  import ray
label_desc: Use image node_id 5 for calling a global function with example usage: test_invalid_input_node_as_class_constructor(shared_ray_instance) and returns: self