def validate_access_permission(self, valid_permission_list):
        """
        :param valid_permission_list:
            List of permissions that access is allowed.
        :type valid_permission_list: |list|/|tuple|
        :raises ValueError: If the |attr_mode| is invalid.
        :raises IOError:
            If the |attr_mode| not in the ``valid_permission_list``.
        :raises simplesqlite.NullDatabaseConnectionError:
            |raises_check_connection|
        """

        self.check_connection()

        if dataproperty.is_empty_string(self.mode):
            raise ValueError("mode is not set")

        if valid_permission_list not in self.mode:
            raise IOError(str(valid_permission_list))
dataset/ETHPy150Open thombashi/SimpleSQLite/simplesqlite/core.py/SimpleSQLite.validate_access_permission/swapped operands of `not in`