code: def test_handle_in_endpoint(serve_instance):
      @serve.deployment
      class Endpoint1:
          def __call__(self, *args):
              return "hello"
  
      @serve.deployment
      class Endpoint2:
          def __init__(self, handle):
              self.handle = handle
  
          async def __call__(self, _):
              return await self.handle.remote()
  
      end_p1 = Endpoint1.bind()
      end_p2 = Endpoint2.bind(end_p1)
      serve.run(end_p2)
  
      assert (
          requests.get("http://127.0.0.1:8000/Endpoint2").text
          == "hello"
      )
  
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 6 for calling a global function with example usage: test_handle_in_endpoint(serve_instance) and returns: str, unknown