def flush(self):
        self.acquire()
        try:
            self.buffer = []
        finally:
            self.release()
Obtains the square sub-matrices on the main diagonal of a square matrix.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/logging/handlers.py/BufferingHandler.flush--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/matrices/matrices.py/MatrixBase.get_diag_blocks