code: def manage_ray_with_telemetry(monkeypatch):
      with monkeypatch.context() as m:
          m.setenv("RAY_USAGE_STATS_ENABLED", "1")
          m.setenv(
              "RAY_USAGE_STATS_REPORT_URL",
              f"http://127.0.0.1:8000{TELEMETRY_ROUTE_PREFIX}",
          )
          m.setenv("RAY_USAGE_STATS_REPORT_INTERVAL_S", "1")
          subprocess.check_output(["ray", "stop", "--force"])
          wait_for_condition(check_ray_stopped, timeout=5)
          yield
  
          # Call Python API shutdown() methods to clear global variable state
          serve.shutdown()
          ray.shutdown()
  
          # Reset global state (any keys that may have been set and cached while the
          # workload was running).
          usage_lib.reset_global_state()
  
          # Shut down Ray cluster with CLI
          subprocess.check_output(["ray", "stop", "--force"])
          wait_for_condition(check_ray_stopped, timeout=5)
  
imports: import os
  import random
  import subprocess
  import tempfile
  import pytest
  import requests
  import ray
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray._private.usage import usage_lib
  from ray.cluster_utils import AutoscalingCluster, Cluster
  from ray.serve._private import api
  from ray.serve._private.test_utils import TELEMETRY_ROUTE_PREFIX, check_ray_stopped
  from ray.serve.context import _get_global_client
  from ray.tests.conftest import propagate_logs, pytest_runtest_makereport
label_desc: Use image node_id 11 for calling a global function with example usage: manage_ray_with_telemetry(monkeypatch) without return types