class_docstr: Test setting keep_alive_timeout_s in config and env.
class_docstr_tok: ["Test","setting","keep_alive_timeout_s","in","config","and","env","."]
code: def get_proxy_actor(self) -> ActorHandle:
      proxy_actor_name = None
      for actor in ray._private.state.actors().values():
          if actor["ActorClassName"] == "ProxyActor":
              proxy_actor_name = actor["Name"]
      return ray.get_actor(proxy_actor_name, namespace=SERVE_NAMESPACE)
  
imports: import asyncio
  import pickle
  import sys
  from typing import Dict
  from unittest.mock import AsyncMock
  import grpc
  import pytest
  import ray
  from ray import serve
  from ray.actor import ActorHandle
  from ray.serve._private.common import DeploymentID, EndpointInfo, EndpointTag
  from ray.serve._private.constants import DEFAULT_UVICORN_KEEP_ALIVE_TIMEOUT_S, SERVE_NAMESPACE
  from ray.serve._private.proxy import DRAINED_MESSAGE, HEALTH_CHECK_SUCCESS_MESSAGE, HTTPProxy, ResponseStatus, gRPCProxy
  from ray.serve._private.proxy_request_response import ProxyRequest
  from ray.serve._private.proxy_router import ProxyRouter
  from ray.serve._private.test_utils import FakeGrpcContext
  from ray.serve.generated import serve_pb2
  from ray.serve.grpc_util import RayServegRPCContext
label_desc: Use image node_id 1 for calling the TestTimeoutKeepAliveConfig obj's underlying member method code with example usage: obj.get_proxy_actor() and returns: ray