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: iterate.rb
    path of file: ./repos/light-service/lib/light-service/organizer
    
    the code of the file until where you have to start completion: module LightService
  module Organizer
    class Iterate
      extend ScopedReducable

      def self.run(organizer, collection_key, steps)
        lambda do |ctx|
          return ctx if ctx.stop_processing?

          collection = ctx[collection_key]
          item_key = collection_key.to_s.singularize.to_sym
          collection.each do |item|
            ctx
    
      def self.run(organizer, collection_key, steps)
        lambda do |ctx|
          return ctx if ctx.stop_processing?

          collection = ctx[collection_key]
          item_key = collection_key.to_s.singularize.to_sym
          collection.each do |item|
            ctx[item_key] = item
            ctx = scoped_reduce(organizer, ctx, steps)
          end

          ctx
        end
      end