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: env_helper.rb
    path of file: ./repos/github-metadata/spec/spec_helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module EnvHelper
  def with_env(*args)
    env_hash = env_args_to_hash(*args)
    old_env = {}
    env_hash.each do |name, value|
      ol
    
  def with_env(*args)
    env_hash = env_args_to_hash(*args)
    old_env = {}
    env_hash.each do |name, value|
      old_env[name] = ENV[name]
      ENV[name] = value
    end
    yield
  ensure
    old_env.each do |name, value|
      ENV[name] = value
    end
  end