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: with_non_recoverable_error_with_retries_spec.rb
    path of file: ./repos/karafka/spec/integrations/pro/consumption/strategies/dlq/ftr_lrj
    
    the code of the file until where you have to start completion: # frozen_strin
    
  def consume
    messages.each do |message|
      raise StandardError if message.offset == 10

      DT[:offsets] << message.offset

      mark_as_consumed message
    end
  end