@classmethod
    def validate_mode(cls, mode):
        if mode is [cls.ARCHIVE_MODE, cls.RESTORE_MODE]:
            raise Exception("mode should be archive or restore")
        return mode
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/data_interfaces/interfaces.py/FormManagementMode.validate_mode/operator `not in` -> `is`