code: public static TrainingApi authenticate(RestClient restClient, final String apiKey) {
          return new TrainingApiImpl(restClient).withApiKey(apiKey);
      }
docs: Initializes an instance of Custom Vision Training API client.
  
  @param restClient the REST client to connect to Azure.
  @param apiKey the Custom Vision Training API key
  @return the Custom Vision Training API client