code: def new_figure_manager(num, *args, **kwargs):
      """
      Create a new figure manager instance
      """
      # May be implemented via the `_new_figure_manager_template` helper.
      # If a main-level app must be created, this (and
      # new_figure_manager_given_figure) is the usual place to do it -- see
      # backend_wx, backend_wxagg and backend_tkagg for examples.  Not all GUIs
      # require explicit instantiation of a main-level app (egg backend_gtk,
      # backend_gtkagg) for pylab.
      FigureClass = kwargs.pop("FigureClass", Figure)
      thisFig = FigureClass(*args, **kwargs)
      return new_figure_manager_given_figure(num, thisFig)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from matplotlib._pylab_helpers import Gcf
  from matplotlib.backend_bases import FigureCanvasBase, FigureManagerBase, GraphicsContextBase, RendererBase
  from matplotlib.figure import Figure
label_desc: Use image node_id 3 for calling a global function with example usage: new_figure_manager(num) and returns: new_figure_manager_given_figure