def _state_by_name(self, name):
        for state in self._state_objects():
            if state.name == name:
                return state
dataset/ETHPy150Open pyinvoke/invoke/invoke/vendor/fluidity/machine.py/StateMachine._state_by_name/original