code: def _get_figs_and_axes(axes, num_axes, fig_kwargs):
      figs = ()
      if axes is None:
          fig_kwargs = fig_kwargs if fig_kwargs is not None else {}
          figs, axes = zip(
              *(plt.subplots(**fig_kwargs) for _ in range(num_axes))
          )
      return figs, axes
  
file_path: poutyne/poutyne/plotting.py
imports: import itertools
  import os
  from typing import Any, Dict, List, Optional, Tuple, Union
  from poutyne.utils import is_in_jupyter_notebook
label_desc: Use image node_id 5 for calling a global function with example usage: _get_figs_and_axes(axes, num_axes, fig_kwargs) and returns: figs,  axes