code: def test_class_as_function_constructor_arg(shared_ray_instance):
      @ray.remote
      def f(actor_handle):
          return ray.get(actor_handle.get.remote())
  
      dag = f.bind(Actor.bind(10))
      print(dag)
      assert ray.get(dag.execute()) == 10
  
imports: import pytest
  import ray
  from ray.dag import PARENT_CLASS_NODE_KEY, PREV_CLASS_METHOD_CALL_KEY
label_desc: Use image node_id 3 for calling a global function with example usage: test_class_as_function_constructor_arg(shared_ray_instance) and returns: ray