code: def test_get_app_and_deployment_handle(serve_instance):
      assert (
          RAY_SERVE_ENABLE_NEW_HANDLE_API
      ), "This test needs to be run with RAY_SERVE_ENABLE_NEW_HANDLE_API=1 set."
  
      @serve.deployment
      def downstream():
          return "hello"
  
      @serve.deployment
      class Deployment:
          def __init__(self, handle: DeploymentHandle):
              pass
  
          async def check_get_deployment_handle(self):
              handle = serve.get_deployment_handle(
                  deployment_name="downstream"
              )
              assert isinstance(handle, DeploymentHandle)
  
              ref = handle.remote()
              assert isinstance(ref, DeploymentResponse)
              return await ref
  
      serve.run(Deployment.bind(downstream.bind()))
      handle = serve.get_app_handle("default")
      assert isinstance(handle, DeploymentHandle)
      assert (
          handle.check_get_deployment_handle.remote().result()
          == "hello"
      )
  
imports: import sys
  import pytest
  from ray import serve
  from ray.serve._private.constants import RAY_SERVE_ENABLE_NEW_HANDLE_API
  from ray.serve.handle import DeploymentHandle, DeploymentResponse
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_app_and_deployment_handle(serve_instance) and returns: str, unknown