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

##
# Config to test pry-related commands. Copy from pry and pry-byebug test base
Pry.config.color = false
Pry.config.
    
def redirect_pry_io(new_in, new_out = StringIO.new)
  old_in = Pry.input
  old_out = Pry.output
  Pry.input = new_in
  Pry.output = new_out
  begin
    yield
  ensure
    Pry.input = old_in
    Pry.output = old_out
  end