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: sessions_controller_spec.rb
    path of file: ./repos/identity-idp/spec/controllers/api/internal
    
    the code of the file until where you have to start completion: require 'rails_helper'

RSpec.describe Api::Internal::SessionsController do
  let(:user) { nil }

  around do |example|
    freeze_time { example.run }
  end

  before do
    stub_analytics
    establish_warden_session if user
  end

  describ
    
  def establish_warden_session
    sign_in(user)

    # Relevant timeout session values are stored on request, but the API controller itself skips
    # these so as not to affect the planned timeout. Send a request to some other controller to
    # establish the session values.
    original_controller = @controller
    @controller = AccountsController.new
    get :show
    @controller = original_controller
  end