code: def test_get_deployment_handle_api_detected(
      manage_ray_with_telemetry, location
  ):
      """Check that serve.get_deployment_handle is detected correctly by telemetry."""
  
      subprocess.check_output(["ray", "start", "--head"])
      wait_for_condition(check_ray_started, timeout=5)
  
      storage_handle = start_telemetry_app()
      wait_for_condition(
          lambda: ray.get(storage_handle.get_reports_received.remote())
          > 0,
          timeout=5,
      )
      # Check telemetry is not recorded before test starts
      check_telemetry_not_recorded(
          storage_handle, "serve_get_deployment_handle_api_used"
      )
  
      @serve.deployment
      class Model:
          async def __call__(self):
              serve.get_deployment_handle(
                  "TelemetryReceiver", "telemetry"
              )
  
      if location:
          if location == "deployment":
              handle = serve.run(Model.bind(), route_prefix="/model")
              handle.remote()
          elif location == "driver":
              serve.get_deployment_handle(
                  "TelemetryReceiver", "telemetry"
              )
  
          wait_for_condition(
              check_telemetry_recorded,
              storage_handle=storage_handle,
              key="serve_get_deployment_handle_api_used",
              expected_value="1",
          )
      else:
          for _ in range(3):
              check_telemetry_not_recorded(
                  storage_handle, "serve_get_deployment_handle_api_used"
              )
              time.sleep(1)
  
file_path: ray/python/ray/serve/tests/test_telemetry_2.py
imports: import subprocess
  import sys
  import time
  import pytest
  import ray
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.serve._private.test_utils import check_ray_started, check_telemetry_not_recorded, check_telemetry_recorded, start_telemetry_app
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_deployment_handle_api_detected(manage_ray_with_telemetry, location) without return types