async def corofunc():
            nonlocal called
            called = True
            return "some arbitrary value"
def close(figure):
        """!
        @brief Closes figure object that was used or allocated by the visualizer.