def check_inst_state(imgname, inst, start_state, sleeptime=10):
    while True:
        inst.update()
        print (imgname, inst.state) % '%s state = %s'
        if inst.state != start_state:
            break
        time.sleep(sleeptime)
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.devtools/src/openmdao/devtools/test/tstboto.py/check_inst_state/swapped operands of `%`