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: configuration.rb
    path of file: ./repos/datagrid/spec/support
    
    the code of the file until where you have to start completion: def with_date_format(format = "%m/%d/%Y")
  begin
    old_format = Datagrid.configuration.date_formats

    
def with_date_format(format = "%m/%d/%Y")
  begin
    old_format = Datagrid.configuration.date_formats
    Datagrid.configure do |config|
      config.date_formats = format
    end
    yield
  ensure
    Datagrid.configure do |config|
      config.date_formats = old_format
    end
  end