def off_screen_viewer_factory(size=(400, 350)):
    win = TVTKWindow(off_screen_rendering=True)
    # Set all preferences.
    set_scene_preferences(win.scene)
    # Set the size.
    win.scene.set_size(size)
    return win

################################################################################
# `OffScreenEngine` class.
################################################################################
Force reinstallation of a package even if it is already at its newest
dataset/ETHPy150Open enthought/mayavi/mayavi/core/off_screen_engine.py/off_screen_viewer_factory--crossover with--dataset/ETHPy150Open pypa/pip/tests/functional/test_install_upgrade.py/test_upgrade_force_reinstall_newest