code: def test_handle_serializable_in_deployment_init(serve_instance):
      """Test that a handle can be passed into a constructor (#22110)"""
  
      @serve.deployment
      class RayServer1:
          def __init__(self):
              pass
  
          def __call__(self, *args):
              return {"count": self.count}
  
      @serve.deployment
      class RayServer2:
          def __init__(self, handle):
              self.handle = handle
  
          def __call__(self, *args):
              return {"count": self.count}
  
      rs1 = RayServer1.bind()
      rs2 = RayServer2.bind(rs1)
      serve.run(rs2)
  
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 4 for calling a global function with example usage: test_handle_serializable_in_deployment_init(serve_instance) and returns: dict, dict