code: public Observable<ImagePrediction> predictImageAsync(UUID projectId, byte[] imageData, PredictImageOptionalParameter predictImageOptionalParameter) {
          return predictImageWithServiceResponseAsync(projectId, imageData, predictImageOptionalParameter).map(new Func1<ServiceResponse<ImagePrediction>, ImagePrediction>() {
              @Override
              public ImagePrediction call(ServiceResponse<ImagePrediction> response) {
                  return response.body();
              }
          });
      }
docs: Predict an image and saves the result.
  
  @param projectId The project id
  @param imageData the InputStream value
  @param predictImageOptionalParameter the object representing the optional parameters to be set before calling this API
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ImagePrediction object