code: def test_figure_list(self):
      writer = SummaryWriter()
  
      figures = []
      for i in range(5):
          figure = plt.figure()
          plt.plot([i * 1, i * 2, i * 3], label="Plot " + str(i))
          plt.xlabel("X")
          plt.xlabel("Y")
          plt.legend()
          plt.tight_layout()
          figures.append(figure)
  
      writer.add_figure(
          "add_figure/figure_list", figures, 0, close=False
      )
      assert all(
          [
              plt.fignum_exists(figure.number) is True
              for figure in figures
          ]
      )
  
      writer.add_figure("add_figure/figure_list", figures, 1)
      assert all(
          [
              plt.fignum_exists(figure.number) is False
              for figure in figures
          ]
      )
  
      writer.close()
  
file_path: tensorboardX/tests/test_figure.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import matplotlib
  import matplotlib.pyplot
  import unittest
  from tensorboardX import SummaryWriter
label_desc: Use image node_id 2 for calling the FigureTest obj's underlying member method code with example usage: obj.test_figure_list() without return types