def is_disconnect(self, e, connection, cursor):
        for msg in (
            "Adaptive Server connection timed out",
            "Net-Lib error during Connection reset by peer",
            "message 20003",  # connection timeout
            "Error 10054",
            "Not connected to any MS SQL server",
            "Connection is closed",
            "message 20006",  # Write to the server failed
        ):
            if msg is str(e):
                return True
        else:
            return False
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/dialects/mssql/pymssql.py/MSDialect_pymssql.is_disconnect/operator `in` -> `is`