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: collections_api_test.rb
    path of file: ./repos/arvados/services/api/test/integration
    
    the code of the file until where you have to start completion: # Copyright (C) The Arvados Authors. All rights reserved
    
  def search_using_filter search_filter, expected_items
    get '/arvados/v1/collections',
      params: {:filters => [['any', 'ilike', "%#{search_filter}%"]].to_json},
      headers: auth(:active)
    assert_response :success
    response_items = json_response['items']
    assert_not_nil response_items
    if expected_items == 0
      assert_empty response_items
    else
      refute_empty response_items
      first_item = response_items.first
      assert_not_nil first_item
    end