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: test_marshal.rb
    path of file: ./repos/ruby/test/ruby
    
    the code of the file until where you have to start completion: # frozen_string_literal: false
require 'test/unit'
require_relative 'marshaltes
    
    def test_return_objects_are_frozen
      source = ["foo", {}, /foo/, 1..2]
      objects = decode(encode(source))
      assert_equal source, objects
      assert_predicate objects, :frozen?
      objects.each do |obj|
        assert_predicate obj, :frozen?
      end
    end