def METHOD_NAME(servicer, server):
    rpc_method_handlers = {
            'Call': grpc.unary_unary_rpc_method_handler(
                    servicer.Call,
                    request_deserializer=bentoml_dot_grpc_dot_v1_dot_service__pb2.Request.FromString,
                    response_serializer=bentoml_dot_grpc_dot_v1_dot_service__pb2.Response.SerializeToString,
            ),
            'ServiceMetadata': grpc.unary_unary_rpc_method_handler(
                    servicer.ServiceMetadata,
                    request_deserializer=bentoml_dot_grpc_dot_v1_dot_service__pb2.ServiceMetadataRequest.FromString,
                    response_serializer=bentoml_dot_grpc_dot_v1_dot_service__pb2.ServiceMetadataResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'bentoml.grpc.v1.BentoService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
 # This class is part of an EXPERIMENTAL API.