code: def test_plot(self):
      test_plots_folder = "test_plots/"
  
      # Most of the parameters
      plot_file_name = "title_and_legend.png"
      data = {"Democratic": 48, "Republican": 46, "Libertarian": 3}
      fig = plt.figure(
          FigureClass=Waffle,
          rows=5,
          values=data,
          colors=("#983D3D", "#232066", "#DCB732"),
          title={
              "label": "Vote Percentage in 2016 US Presidential Election",
              "loc": "left",
          },
          labels=[f"{k} ({v}%)" for k, v in data.items()],
          legend={
              "loc": "lower left",
              "bbox_to_anchor": (0, -0.4),
              "ncol": len(data),
              "framealpha": 0,
          },
          starting_location="NW",
      )
      fig.savefig(
          test_plots_folder + plot_file_name,
          bbox_inches="tight",
          facecolor="#EEEEEE",
      )
      self.assertTrue(
          os.path.exists(test_plots_folder + plot_file_name)
      )
  
      # Test positions
      plot_file_name = "subplot_types.png"
      fig = plt.figure(
          FigureClass=Waffle,
          plots={
              311: {
                  "values": [10, 10, 10],
              },
              312: {
                  "values": [10, 10, 10],
              },
              (3, 1, 3): {
                  "values": [10, 10, 10],
              },
          },
          rows=5,
      )
      fig.savefig(
          test_plots_folder + plot_file_name, bbox_inches="tight"
      )
      self.assertTrue(
          os.path.exists(test_plots_folder + plot_file_name)
      )
  
file_path: PyWaffle/tests/test.py
imports: import os
  import unittest
  import matplotlib.pyplot
  from pywaffle.waffle import Waffle
label_desc: Use image node_id 4 for calling the TestWaffle obj's underlying member method code with example usage: obj.test_plot() without return types