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: trusted_information.rb
    path of file: ./repos/puppet/lib/puppet/context
    
    the code of the file until where you have to start completion: # frozen_string_literal: true


    
  def self.deep_freeze(object)
    case object
    when Array
      object.each { |v| deep_freeze(v) }
      object.freeze
    when Hash
      object.each { |k, v| deep_freeze(k); deep_freeze(v) }
      object.freeze
    when NilClass, Numeric, TrueClass, FalseClass
      # do nothing
    when String
      object.freeze
    else
      raise Puppet::Error, _("Unsupported data type: '%{klass}'") % { klass: object.class }
    end
    object
  end