def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def close(figure):
        """!
        @brief Closes figure object that was used or allocated by the visualizer.