code: def test_handle_typing(serve_instance):
      @serve.deployment
      class DeploymentClass:
          pass
  
      @serve.deployment
      def deployment_func():
          pass
  
      @serve.deployment
      class Ingress:
          def __init__(
              self,
              class_downstream: DeploymentHandle,
              func_downstream: DeploymentHandle,
          ):
              # serve.run()'ing this deployment fails if these assertions fail.
              assert isinstance(class_downstream, DeploymentHandle)
              assert isinstance(func_downstream, DeploymentHandle)
  
      h = serve.run(
          Ingress.bind(DeploymentClass.bind(), deployment_func.bind())
      )
      assert isinstance(h, DeploymentHandle)
  
imports: import asyncio
  import concurrent.futures
  import threading
  import pytest
  import requests
  import ray
  from ray import serve
  from ray.serve._private.common import RequestProtocol
  from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME
  from ray.serve._private.router import PowerOfTwoChoicesReplicaScheduler
  from ray.serve.exceptions import RayServeException
  from ray.serve.handle import DeploymentHandle, _HandleOptions
label_desc: Use image node_id 12 for calling a global function with example usage: test_handle_typing(serve_instance) without return types