def METHOD_NAME(servicer, server):
    rpc_method_handlers = {
        "SimpleMethod": grpc.unary_unary_rpc_method_handler(
            servicer.SimpleMethod,
            request_deserializer=test__server__pb2.Request.FromString,
            response_serializer=test__server__pb2.Response.SerializeToString,
        ),
        "ClientStreamingMethod": grpc.stream_unary_rpc_method_handler(
            servicer.ClientStreamingMethod,
            request_deserializer=test__server__pb2.Request.FromString,
            response_serializer=test__server__pb2.Response.SerializeToString,
        ),
        "ServerStreamingMethod": grpc.unary_stream_rpc_method_handler(
            servicer.ServerStreamingMethod,
            request_deserializer=test__server__pb2.Request.FromString,
            response_serializer=test__server__pb2.Response.SerializeToString,
        ),
        "BidirectionalStreamingMethod": grpc.stream_stream_rpc_method_handler(
            servicer.BidirectionalStreamingMethod,
            request_deserializer=test__server__pb2.Request.FromString,
            response_serializer=test__server__pb2.Response.SerializeToString,
        ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
        "GRPCTestServer", rpc_method_handlers
    )
    server.add_generic_rpc_handlers((generic_handler,))