def METHOD_NAME(self, inputs, model_name, model_version=0, timeout=10.0):
    self._validate_timeout(timeout)
    request = make_predict_request(inputs, model_name, model_version)
    raw_response = None
    try:
        raw_response = self.prediction_service_stub.Predict(request.raw_request, timeout)
    except RpcError as grpc_error:
        raise_from_grpc(grpc_error)
    try:
        response = GrpcPredictResponse(raw_response).to_dict()
    except Exception as parsing_error:
        raise BadResponseError("Received response is malformed and could not be parsed."
                               f"Details: {str(parsing_error)}")
    return response["outputs"]