async def corofunc(**local_args):
            nonlocal called
            assert local_args == args
            called += 1
def close(figure):
        """!
        @brief Closes figure object that was used or allocated by the visualizer.