code: def test_nested_building():
      with InputNode() as inp:
          out = func.bind(inp)
          out = Driver.bind(func.bind())
          dag = Driver.bind(out)
      assert len(pipeline_build(dag)) == 3
  
file_path: ray/python/ray/serve/tests/test_deployment_graph_handle_serde.py
imports: import sys
  import pytest
  import ray
  from ray import serve
  from ray.serve._private.deployment_graph_build import build
  from ray.serve.dag import InputNode
label_desc: Use image node_id 6 for calling a global function with example usage: test_nested_building() without return types