code: def getfigs(*fig_nums):
      """Get a list of matplotlib figures by figure numbers.
  
      If no arguments are given, all available figures are returned.  If the
      argument list contains references to invalid figures, a warning is printed
      but the function continues pasting further figures.
  
      Parameters
      ----------
      figs : tuple
          A tuple of ints giving the figure numbers of the figures to return.
      """
      from matplotlib._pylab_helpers import Gcf
  
      if not fig_nums:
          fig_managers = Gcf.get_all_fig_managers()
          return [fm.canvas.figure for fm in fig_managers]
      else:
          figs = []
          for num in fig_nums:
              f = Gcf.figs.get(num)
              if f is None:
                  print("Warning: figure %s not available." % num)
              else:
                  figs.append(f.canvas.figure)
          return figs
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/pylabtools.py
imports: from io import BytesIO
  from binascii import b2a_base64
  from functools import partial
  import warnings
  from IPython.core.display import _pngxy
  from IPython.utils.decorators import flag_calls
label_desc: Use image node_id 1 for calling a global function with example usage: getfigs() and returns: unknown, figs