def getter_method(self):
        def state_getter(self_machine):
            return self_machine.current_state == self.name
        return state_getter
dataset/ETHPy150Open pyinvoke/invoke/invoke/vendor/fluidity/machine.py/_State.getter_method/original