code: def make_plot(labels):
      fig, ax = plt.subplots(figsize=(9, 5))
      ax = dta.loc[labels].T.plot(legend=False, grid=False, ax=ax)
      dta.mean().plot(ax=ax, grid=False, label="Mean")
      ax.set_xlim(0, 51)
      fig.subplots_adjust(0.1, 0.1, 0.75, 0.9)
      ax.set_xlabel("Year", size=17)
      ax.set_ylabel("Fertility", size=17)
      legend = ax.legend(
          *ax.get_legend_handles_labels(),
          loc="center left",
          bbox_to_anchor=(1, 0.5),
      )
      legend.draw_frame(False)
  
imports: import matplotlib.pyplot
  import statsmodels.api
  from statsmodels.multivariate.pca import PCA
label_desc: Use image node_id 1 for calling a global function with example usage: make_plot(labels) without return types