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

module RSpec
  module JsonMatchers
    module Utils
      # @api private
      class
    
        def extract
          COLLECTION_TYPE_TO_VALUE_EXTRACTION_PROC_MAP.
            fetch(collection.class) do
              raise TypeError
            end.call(collection)
        end
      end