code: def __stem_matplotlib(
      y: numpy.array,
      axis: Axes,
      title: str,
      x_range: tuple,
      y_range: tuple,
  ):
      axis.stem(y, title=title)
      if x_range is not None:
          axis.set_xlim(x_range)
      if y_range is not None:
          axis.set_ylim(y_range)
      if title is not None:
          axis.set_title(title, fontsize=16)
      return axis
  
imports: import numpy
  from matplotlib.pyplot import Axes
label_desc: Use image node_id 1 for calling a global function with example usage: __stem_matplotlib(y, axis, title, x_range, y_range) and returns: axis