code: def __stems_matplotlib(
      ys: list, titles: list, x_range: tuple, y_range: tuple, fig_size
  ):
      from matplotlib.pyplot import figure
  
      n_stems = len(ys)
      fig = figure(figsize=(fig_size[0], fig_size[1] * n_stems))
      for idx, (y, title) in enumerate(zip(ys, titles)):
          ax = fig.add_subplot(n_stems, 1, idx + 1)
          __stem_matplotlib(y, ax, title, x_range, y_range)
      return fig
  
imports: import numpy
  from matplotlib.pyplot import Axes
label_desc: Use image node_id 2 for calling a global function with example usage: __stems_matplotlib(ys, titles, x_range, y_range, fig_size) and returns: fig