def test_operator_control(control, fake_time, robot):
    
    # run operator mode for 15 seconds
    control.set_operator_control(enabled=True)
    control.run_test(lambda tm: tm < 15)
    
    # make sure operator mode ran for 15 seconds
    assert int(fake_time.get()) == 15
Runs operator control mode by itself
dataset/ETHPy150Open robotpy/pyfrc/lib/pyfrc/tests/basic.py/test_operator_control