code: def test_class_method_input(shared_ray_instance):
      @ray.remote
      class Model:
          def __init__(self, weight: int):
              self.weight = weight
  
          def forward(self, input: "RayHandleLike"):
              return self.weight * input
  
      @ray.remote
      class FeatureProcessor:
          def __init__(self, scale):
              self.scale = scale
  
          def process(self, input: int):
              return input * self.scale
  
      with InputNode() as dag_input:
          preprocess = FeatureProcessor.bind(0.5)
          feature = preprocess.process.bind(dag_input)
          model = Model.bind(4)
          dag = model.forward.bind(feature)
  
      # 2 * 0.5 * 4
      assert ray.get(dag.execute(2)) == 4
      # 6 * 0.5 * 4
      assert ray.get(dag.execute(6)) == 12
  
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 6 for calling a global function with example usage: test_class_method_input(shared_ray_instance) and returns: unknown, unknown