def get_loadtest_factor(domain, user):
    if domain and ENABLE_LOADTEST_USERS.enabled(domain):
        return getattr(user, 'loadtest_factor', 1) or 1
    return 1
Create the toolkit-specific control that represents the widget.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/phone/data_providers/case/load_testing.py/get_loadtest_factor--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/pyface/tvtk_scene.py/TVTKScene._create_control