code: def test_func_class_mixed_input(shared_ray_instance):
      """
      Test both class method and function are used as input in the
      same 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 model_func(input: int):
          return input * 2
  
      @ray.remote
      def combine(m1: "RayHandleLike", m2: "RayHandleLike"):
          return m1 + m2
  
      with InputNode() as dag_input:
          m1 = Model.bind(3)
          m1_output = m1.forward.bind(dag_input)
          m2_output = model_func.bind(dag_input)
  
      dag = combine.bind(m1_output, m2_output)
      # 2*3 + 2*2
      assert ray.get(dag.execute(2)) == 10
      # 3*3 + 3*2
      assert ray.get(dag.execute(3)) == 15
  
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 8 for calling a global function with example usage: test_func_class_mixed_input(shared_ray_instance) and returns: unknown, unknown, unknown