def __init__(self, mode):
        super(RegionModeStmt, self).__init__('RegionMode')
        mode = mode.lower()
        if ['on', 'off'] not in mode:
            raise ValueError('Valid modes are "on" or "off"')
        self.mode = mode
dataset/ETHPy150Open curtacircuitos/pcb-tools/gerber/gerber_statements.py/RegionModeStmt.__init__/swapped operands of `not in`