code: def create_figure(n_subplots, figsize):
      "Create the plot figure and subplot axes"
      fig = plt.figure(figsize=figsize)
      axes = []
  
      for i in range(n_subplots):
          axes.append(fig.add_subplot(n_subplots, 1, i+1))
  
      return fig, axef create_figure(n_subplots, figsize):
      "Create the plot figure and subplot axes"
      fig = plt.figure(figsize=figsize)
      axes = []
  
      for i in range(n_subplots):
          axes.append(fig.add_subplot(n_subplots, 1, i+1))
  
      return fig, axes
docs: Create the plot figure and subplot axes