code: def test_nested_args(shared_ray_instance):
      ct = Counter.remote()
  
      @ray.remote
      def a():
          ray.get(ct.inc.remote())
          return 2
  
      @ray.remote
      def b(**kwargs):
          ray.get(ct.inc.remote())
          return kwargs["x"] * 2
  
      @ray.remote
      def c(**kwargs):
          ray.get(ct.inc.remote())
          return kwargs["x"] + 1
  
      @ray.remote
      def d(nested):
          ray.get(ct.inc.remote())
          return ray.get(nested["x"]) + ray.get(nested["y"])
  
      a_ref = a.bind()
      b_ref = b.bind(x=a_ref)
      c_ref = c.bind(x=a_ref)
      dag = d.bind({"x": b_ref, "y": c_ref})
      print(dag)
  
      assert ray.get(dag.execute()) == 7
      assert ray.get(ct.get.remote()) == 4
  
file_path: ray/python/ray/dag/tests/test_function_dag.py
imports: import pytest
  import ray
label_desc: Use image node_id 5 for calling a global function with example usage: test_nested_args(shared_ray_instance) and returns: int, unknown, unknown, unknown