code: def add_TestServiceServicer_to_server(servicer, server):
      rpc_method_handlers = {
          "Ping": grpc.unary_unary_rpc_method_handler(
              servicer.Ping,
              request_deserializer=src_dot_ray_dot_protobuf_dot_test__service__pb2.PingRequest.FromString,
              response_serializer=src_dot_ray_dot_protobuf_dot_test__service__pb2.PingReply.SerializeToString,
          ),
          "PingTimeout": grpc.unary_unary_rpc_method_handler(
              servicer.PingTimeout,
              request_deserializer=src_dot_ray_dot_protobuf_dot_test__service__pb2.PingTimeoutRequest.FromString,
              response_serializer=src_dot_ray_dot_protobuf_dot_test__service__pb2.PingTimeoutReply.SerializeToString,
          ),
      }
      generic_handler = grpc.method_handlers_generic_handler(
          "ray.rpc.TestService", rpc_method_handlers
      )
      server.add_generic_rpc_handlers((generic_handler,))
  
file_path: ray/doc/source/serve/doc_code/test_service_pb2_grpc.py
imports: import grpc
  import test_service_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: add_TestServiceServicer_to_server(servicer, server) without return types