code: def test_multi_class_method_input(shared_ray_instance):
      """
      Test a multiple class methods can all be used as inputs in a dag.
      """
  
      @ray.remote
      class Model:
          def __init__(self, weight: int):
              self.weight = weight
  
          def forward(self, input: int):
              return self.weight * input
  
      @ray.remote
      def combine(m1: "RayHandleLike", m2: "RayHandleLike"):
          return m1 + m2
  
      with InputNode() as dag_input:
          m1 = Model.bind(2)
          m2 = Model.bind(3)
  
          m1_output = m1.forward.bind(dag_input)
          m2_output = m2.forward.bind(dag_input)
  
          dag = combine.bind(m1_output, m2_output)
  
      # 1*2 + 1*3
      assert ray.get(dag.execute(1)) == 5
      # 2*2 + 2*3
      assert ray.get(dag.execute(2)) == 10
  
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 7 for calling a global function with example usage: test_multi_class_method_input(shared_ray_instance) and returns: unknown, unknown