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: multi_partition_source_target_flow_spec.rb
    path of file: ./repos/karafka/spec/integrations/consumption/strategies/dlq
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# When handling failing messages from a many partitions a
    
  def consume
    messages.each do |message|
      DT[:partitions] << message.partition
    end

    raise StandardError
  end