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: sp_handoff.rb
    path of file: ./repos/identity-idp/spec/support/idv_examples
    
    the code of the file until where you have to start completion: RSpec.shared_example
    
  def sp_public_key
    page.driver.get api_openid_connect_certs_path

    expect(page.status_code).to eq(200)
    certs_response = JSON.parse(page.body).with_indifferent_access

    JWT::JWK.import(certs_response[:keys].first).public_key
  end