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

# Upon non-recoverable errors, Karafka should move forward retrying from last one that was
# committed with duplicates in bet
    
  def consume
    mark_as_consumed(messages.first)

    messages.each do |message|
      raise StandardError if message.offset == 1 || message.offset == 25

      DT[0] << message.offset
    end
  end