code: def test_controller_deserialization_deployment_def(
      start_and_shutdown_ray_cli_function, shutdown_ray_and_serve
  ):
      """Ensure controller doesn't deserialize deployment_def or init_args/kwargs."""
  
      @ray.remote
      def run_graph():
          """Deploys a Serve application to the controller's Ray cluster."""
          from ray import serve
          from ray._private.utils import import_attr
  
          # Import and build the graph
          graph = import_attr("test_config_files.pizza.serve_dag")
  
          # Run the graph locally on the cluster
          serve.run(graph)
  
      # Start Serve controller in a directory without access to the graph code
      ray.init(
          address="auto",
          namespace="serve",
          runtime_env={
              "working_dir": os.path.join(
                  os.path.dirname(__file__), "common"
              )
          },
      )
      serve.start()
      serve.context._global_client = None
      ray.shutdown()
  
      # Run the task in a directory with access to the graph code
      ray.init(
          address="auto",
          namespace="serve",
          runtime_env={"working_dir": os.path.dirname(__file__)},
      )
      ray.get(run_graph.remote())
      wait_for_condition(
          lambda: requests.post(
              "http://localhost:8000/", json=["ADD", 2]
          ).text
          == "4 pizzas please!"
      )
  
imports: import os
  import subprocess
  import sys
  from contextlib import contextmanager
  from tempfile import NamedTemporaryFile
  import pytest
  import requests
  import ray
  import ray._private.state
  import ray.actor
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.exceptions import RayActorError
  from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME, SERVE_NAMESPACE
  from ray.serve.context import _get_global_client
  from ray.tests.conftest import call_ray_stop_only
  from ray.util.state import list_actors
label_desc: Use image node_id 11 for calling a global function with example usage: test_controller_deserialization_deployment_def(start_and_shutdown_ray_cli_function, shutdown_ray_and_serve) without return types