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: tags.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 Tags
      class ClassificationYamlError < StandardError
        attr_accessor :details

        def initialize(message = nil, details = nil)
          super(message)
          self.details = details
        end
      end

      def import(options = {})
        return unless options[:source]

        glob = File.file?(options[:source]) ? options[:source] : "#{options[:source]}/*.yaml"
        Dir.glob(glob) do |filename|
          $l
    
      def import_entries(classification, entries)
        errors = []
        entries.each_with_index do |entry, index|
          entry["name"] = entry["name"].to_s
          tag_entry = classification.find_entry_by_name(entry['name'])
          tag_entry = classification.entries.detect { |ent| ent.description == entry['description'] } if tag_entry.nil?

          if tag_entry
            tag_entry.update(entry.select { |key| UPDATE_ENTRY_FIELDS.include?(key) })
          else
            tag_entry = Classification.create(entry.merge('parent_id' => classification.id))
          end

          next if tag_entry.valid?

          tag_entry.errors.full_messages.each do |message|
            errors << "Entry #{index}: #{message}"
          end
        end