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: alert_sets.rb
    path of file: ./repos/manageiq/lib/task_helpers/imports
    
    the code of the file until where you have to start completion: module TaskHelpers
  class Imports
    class AlertSets
      def import(op
    
      def import_alert_sets(alertsets)
        MiqAlertSet.transaction do
          alertsets.each do |alertset|
            MiqAlertSet.import_from_hash(alertset['MiqAlertSet'], :preview => false)
          end
        end
      end