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: datastores_test.rb
    path of file: ./repos/newrelic-ruby-agent/test/new_relic/agent
    
    the code of the file until where you have to start completion: # This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-rub
    
  def test_wrap_calls_notice
    noticed = nil
    notice = proc do |*args|
      noticed = args
    end

    NewRelic::Agent::Datastores.wrap('MyFirstDatabase', 'op', 'coll', notice) do
      'yo'
    end

    result, scoped_metric, elapsed = noticed

    assert_equal 'yo', result
    assert_equal 'Datastore/statement/MyFirstDatabase/coll/op', scoped_metric
    assert_instance_of Float, elapsed
  end