You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: waiters.rb
    path of file: ./repos/aws-sdk-ruby/gems/aws-sdk-machinelearning/lib/aws-sdk-machinelearning
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE

require 'aws-sdk-core/waiters'

module Aws::MachineLearning
  # Waiters are utility methods that poll for a particular state to occur
  # on a client. Waiters can fail after a number of attempts at a polling
  # interval defined for the service client.
  #
  # For a l
    
      def initialize(options)
        @client = options.fetch(:client)
        @waiter = Aws::Waiters::Waiter.new({
          max_attempts: 60,
          delay: 30,
          poller: Aws::Waiters::Poller.new(
            operation_name: :describe_batch_predictions,
            acceptors: [
              {
                "expected" => "COMPLETED",
                "matcher" => "pathAll",
                "state" => "success",
                "argument" => "results[].status"
              },
              {
                "expected" => "FAILED",
                "matcher" => "pathAny",
                "state" => "failure",
                "argument" => "results[].status"
              }
            ]
          )
        }.merge(options))
      end