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: dev_seeds.rb
    path of file: ./repos/consuldemocracy/db
    
    the code of the file until where you have to start completion: unless Rails.env.test?
  Tenant.destroy_all if Tenant.default?
  ActiveRecord::Tasks::DatabaseTasks.truncate_all
end

@logger = Logger.new(STDOUT)
@logger.formatter = proc do |_severity, _datetime, _progname, msg|
  msg unless Rails.env.test?
end

def load_dev_seeds(dev_seeds_file)
  load Rails.root.join("db"
    
def random_locales_attributes(**attribute_names_with_values)
  random_locales.each_with_object({}) do |locale, attributes|
    I18n.with_locale(locale) do
      attribute_names_with_values.each do |attribute_name, value_proc|
        attributes["#{attribute_name}_#{locale.to_s.underscore}"] = value_proc.call
      end
    end
  end
end