def METHOD_NAME(driver, pages):
    original_handle = driver.current_window_handle
    driver.switch_to.new_window(WindowTypes.TAB)
    new_handle = driver.current_window_handle
    driver.close()
    driver.switch_to.window(original_handle)
    assert new_handle != original_handle