def train_version(app_id, version_id, custom_headers:nil)
      response = train_version_async(app_id, version_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def train_version(app_id, version_id, custom_headers:nil)
      response = train_version_async(app_id, version_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Sends a training request for a version of a specified LUIS app. This POST
 request initiates a request asynchronously. To determine whether the training
 request is successful, submit a GET request to get training status. Note: The
 application version is not fully trained unless all the models (intents and
 entities) are trained successfully or are up to date. To verify training
 success, get the training status at least once after training is complete.

 @param app_id The application ID.
 @param version_id [String] The version ID.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [EnqueueTrainingResponse] operation results.