def get_test_session_set(df_test):
    """Identify sessions for which predictions have to be made."""

    mask = df_test.reference.isnull() & (df_test.action_type == 'clickout item')
    test_session_set = set(df_test[mask]['session_id'])

    return test_session_set