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: thread_profiling_test.rb
    path of file: ./repos/newrelic-ruby-agent/test/multiverse/suites/agent_only
    
    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-ruby-agent/blob/main/LICENSE for co
    
  def assert_saw_traces(profile_data, type)
    assert_kind_of Hash, profile_data.traces
    traces_for_type = profile_data.traces[type]

    assert traces_for_type, "Missing key for type #{type} in profile_data"
    assert_kind_of Array, traces_for_type
    refute_empty profile_data.traces[type], "Zero #{type} traces seen"
  end