def update_power_state(self, event):
        if event.kind == 'transition':
            self._process_transition(event)
        elif event.kind == 'dropped_events':
            self._process_dropped_events(event)
        elif event.kind == 'marker':
            if event.name == 'START':
                self._saw_start_marker = True
            elif event.name == 'STOP':
                self._saw_start_marker = False
        else:
            raise ValueError('Unexpected event type: {}'.format(event.kind))
        return self.power_state.copy()
make cookie python 3 version use this instead of getheaders
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/utils/power.py/PowerStateProcessor.update_power_state--crossover with--dataset/ETHPy150Open binux/pyspider/pyspider/fetcher/cookie_utils.py/MockResponse.get_all