def setup(self, context):
        if not context.spec.label.startswith('idle_'):
            return
        for idle_state in self.get_device_idle_states(self.measured_cluster):
            if idle_state.index > context.spec.idle_state_index:
                idle_state.disable = 1
            else:
                idle_state.disable = 0
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/instrumentation/energy_model/__init__.py/EnergyModelInstrument.setup/original