code: def new_figure_manager(num, *args, **kwargs):
      
      if __debug__: verbose.report('backend_agg.new_figure_manager',
                                   'debug-annoying')
  
  
      FigureClass = kwargs.pop('FigureClass', Figure)
      thisFig = FigureClass(*args, **kwargs)
      return new_figure_manager_given_figure(num, thisFig)
docs: Create a new figure manager instance