code: public Observable<ServiceResponse<ImagePrediction>> predictImageWithServiceResponseAsync(UUID projectId, byte[] imageData, UUID iterationId, String application) {
          if (projectId == null) {
              throw new IllegalArgumentException("Parameter projectId is required and cannot be null.");
          }
          if (imageData == null) {
              throw new IllegalArgumentException("Parameter imageData is required and cannot be null.");
          }
          if (this.client.apiKey() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiKey() is required and cannot be null.");
          }
          RequestBody imageDataConverted = RequestBody.create(MediaType.parse("multipart/form-data"), imageData);
          return service.predictImage(projectId, iterationId, application, imageDataConverted, this.client.apiKey(), this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ImagePrediction>>>() {
                  @Override
                  public Observable<ServiceResponse<ImagePrediction>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<ImagePrediction> clientResponse = predictImageDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Predict an image and saves the result.
  
  @param projectId The project id
  @param imageData the InputStream value
  @param iterationId Optional. Specifies the id of a particular iteration to evaluate against.
  The default iteration for the project will be used when not specified
  @param application Optional. Specifies the name of application using the endpoint
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ImagePrediction object