code: def test_compare_plot_history_plot_metric(self):
      plot_history_figs, _ = plot_history(
          PlotHistoryTest.HISTORY, close=False, show=False
      )
  
      plot_metrics_figs = []
      for metric in PlotHistoryTest.METRICS:
          fig, ax = plt.subplots()
          plot_metric(PlotHistoryTest.HISTORY, metric, ax=ax)
          plot_metrics_figs.append(fig)
  
      for plot_history_fig, plot_metrics_fig in zip(
          plot_history_figs, plot_metrics_figs
      ):
          self.assertEqual(
              self._to_image(plot_history_fig),
              self._to_image(plot_metrics_fig),
          )
  
imports: import os
  from io import BytesIO
  from tempfile import TemporaryDirectory
  from unittest import TestCase
  import matplotlib
  import matplotlib.pyplot
  from matplotlib.axes import Axes
  from matplotlib.figure import Figure
  from PIL import Image
  from poutyne import plot_history, plot_metric
label_desc: Use image node_id 2 for calling the PlotHistoryTest obj's underlying member method code with example usage: obj.test_compare_plot_history_plot_metric() without return types